|
-
Mar 15th, 2004, 10:47 AM
#1
Thread Starter
Frenzied Member
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
-
Mar 15th, 2004, 10:57 AM
#2
Sleep mode
I would call it "component" because user control come with gui .
-
Mar 15th, 2004, 11:06 AM
#3
Thread Starter
Frenzied Member
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
-
Mar 15th, 2004, 11:14 AM
#4
Sleep mode
It would make more sense if you create component class for non-GUI (this is how I've done it before) .
-
Mar 15th, 2004, 12:01 PM
#5
Thread Starter
Frenzied Member
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
-
Mar 15th, 2004, 12:27 PM
#6
Sleep mode
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 .
-
Mar 15th, 2004, 12:43 PM
#7
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|