Results 1 to 2 of 2

Thread: Component calling a form

  1. #1

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    Component calling a form

    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

  2. #2

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width