|
-
Oct 2nd, 2023, 02:45 AM
#14
Re: Create User Control Object at runtime Without form
 Originally Posted by Maddis
Hi, I'm trying to load a user control at runtime. I am not using any form, everything will be done using a Module and classes.
I have to ask - why not use a Form?
Just because you load a Form doesn't mean anybody has to see it.
Back in 1999, I was writing Windows Services in VB6. Yes, really.
What made is possible was an ActiveX Control that interacted with the Windows Service Controller.
And yes; that control had to be placed on a Form.
But everybody said:
You can't write Windows Services in VB6. They can't have any Forms. There's no Desktop for them to be shown on.
And they were almost right.
Services do have access to a Desktop but it's a virtual, pseudo-desktop that nobody can ever get to.
So, you have to be absolutely air-tight in your error handling, so that you don't get any stray MsgBox's popping up on that pseudo-Desktop, thereby locking up the entire process until you have to kill it. Other than that, though, the coding is business as usual.
Regards, Phill W.
Tags for this Thread
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
|