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
Printable View
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
I would call it "component" because user control come with gui .
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
It would make more sense if you create component class for non-GUI (this is how I've done it before) .
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 .Quote:
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
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