Results 1 to 7 of 7

Thread: Non graphical user control?

  1. #1

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

    Non graphical user control?

    I need to make a custom control, but it won't have any user interface - kind of like a timer control. Do I still make a user control? The reading I've done so far only talks about something with a user interface.

    Thanks,
    Mike

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I would call it "component" because user control come with gui .

  3. #3

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    Thanks, Pirate, but I guess I mean, do I still make "Windows Control Library" type project? I'm guessing that instead of a "User Control" I would make a "Component Class"?

    Sorry, but I have not done before and want to make sure I get it right - couldn't find any info when I searched.

    Thanks,
    Mike

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    It would make more sense if you create component class for non-GUI (this is how I've done it before) .

  5. #5

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    ok - I have created a class library with a component in it and have added it to a project that I want to use it in. Working fine so far

    But now I want my component to do something, specifically, wait around for a UDP message to arrive. There is no Sub Main(). What should I do? Start a thread in the Sub New()?

    TIA,
    MIke

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by Mike Hildner
    ok - I have created a class library with a component in it and have added it to a project that I want to use it in. Working fine so far

    But now I want my component to do something, specifically, wait around for a UDP message to arrive. There is no Sub Main(). What should I do? Start a thread in the Sub New()?

    TIA,
    MIke
    Sorry dude , not sure of the efficient way to do this .

  7. #7

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    Me neither - but I started a thread that calls a sub, the sub never ends because of a while true... end while. It has a blocking UdpClient.Receive and seems to be working the way I want.

    Thanks,
    Mike

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