Re: Component calling a form

From: Mike Hildner (mhildner_at_afweb.com)
Date: 03/15/04


Date: Mon, 15 Mar 2004 14:59:57 -0700

Well, for now, I'm getting around this by creating a new thread, then doing
Form.ShowDialog and it seems to be ok. Still seems like I'm missing
something :(

"Mike Hildner" <mhildner@afweb.com> wrote in message
news:%23sxyHwrCEHA.2556@TK2MSFTNGP12.phx.gbl...
> I've created a class library and a component. The component just waits
until
> a UDP message arrives. What I'd like to do is when I get a message is show
a
> form that has the data that UdpClient.Receive returns.
>
> So I created a Windows form, with a single text box, in the class library.
> If I attempt to show the form with Form.Show() my application becomes "Not
> Responding". If I start a thread to show the form, the form just flashes
> briefly. If I use Form.ShowDialog() things seem to work ok, except that
only
> one form at a time will show if there are several messages. Closing the
form
> then brings up the next message.
>
> I assume I'm doing something wrong by trying to show a form from a
> component, but don't really know. Can anyone suggest how to do this
> properly?
>
> Thanks,
> Mike
>
>



Relevant Pages

  • Re: major DNS hiccup
    ... Mike, can you have a look at your named logs, and see when it started? ... I see reply packets with correct checksums and no noticeable missing packets - so they'd have to be intercepting DNS packets, garbaging and retransmitting them: somehow I doubt ntl could manage that quite so successfully :-) ... Please use the corrected version of the address below for replies. ...
    (comp.unix.bsd.freebsd.misc)
  • RE: Decrementing row after deletion
    ... Thanks Mike - you are a star, but that was a bit of an easy one! ... I''''m not a complete idiot - there are some parts missing! ... If MyPos> 0 Then ...
    (microsoft.public.excel.programming)
  • Re: PARTING OUT THE FOLLOWING GAMES: Elvira and the Party Monsters, White Water, Road Show, Star Tre
    ... Mike, email sent. ... RS is missing jaw assemblies and most head parts, ...
    (rec.games.pinball)
  • Re: Outlook 2002, warnings
    ... > What am I missing? ... >>> Mike, I've looked at the articles but I am wallowing in the dark here. ... >>> Ian ...
    (microsoft.public.fox.helpwanted)
  • Re: disabling JComboBox options
    ... > it did not really work very well, maybe i am missing something. ... > the setEnabledmakes the list cell disabled (the color of the text ... > class RegionListCellRenderer extends JLabel implements ListCellRenderer { ... Mike W ...
    (comp.lang.java.programmer)