-
Oct 16th, 2019, 12:59 PM
#1
Thread Starter
Hyperactive Member
How to create a Form at run-time
For some reason, I need to create a form at run-time.
How to do this?
-
Oct 16th, 2019, 01:48 PM
#2
Re: How to create a Form at run-time
We are very curious people. I would like to know "for some reason".
-
Oct 16th, 2019, 02:21 PM
#3
Re: How to create a Form at run-time
Wish jdy was as 'curious'!
Just a quick Google search turns up plenty of hits....like this:
https://www.dreamincode.net/forums/t...time-with-vb6/
-
Oct 16th, 2019, 03:20 PM
#4
Re: How to create a Form at run-time
Originally Posted by SamOscarBrown
do you mean to use .NET?
-
Oct 16th, 2019, 04:33 PM
#5
Re: How to create a Form at run-time
not me.....maybe jdy.
looks like VB6 code to me...didn't test
-
Oct 16th, 2019, 04:46 PM
#6
Re: How to create a Form at run-time
"to create a Form at run-time" in VB6 can mean different things.
It can mean to instantiate an existing (already designed) form.
Or it could mean to create a window from scratch via API.
Or perhaps for someone it could mean some other thing.
We have no idea what the OP wants.
Last edited by Eduardo-; Oct 16th, 2019 at 04:51 PM.
-
Oct 16th, 2019, 04:48 PM
#7
Re: How to create a Form at run-time
DID test that other program...and, yes, does that fine.
BUT, I guess your's is a BIT simpler
-
Oct 16th, 2019, 11:53 PM
#8
Re: How to create a Form at run-time
Originally Posted by SamOscarBrown
not me.....maybe jdy.
looks like VB6 code to me...didn't test
I guess someone did not scroll down on the page. The first piece of code is indeed .Net C# specifically but the piece lower on the page is VB6
-
Oct 17th, 2019, 02:24 AM
#9
Re: How to create a Form at run-time
Originally Posted by DataMiser
the piece lower on the page is VB6
Yes, but it is not code to create new forms out of nothing.
That can't be done in VB6 (*).
PS: (*) Of course, i mean normally. Everything could be possible by changing the way VB6 works by means of ASM or strange tricks.
-
Oct 17th, 2019, 09:34 AM
#10
Thread Starter
Hyperactive Member
Re: How to create a Form at run-time
Curiosity is always good!
Roughly speaking, use in calculating form's width.
I can make this dummy form at design time but want to make a form at design time temporarily.
-
Oct 17th, 2019, 09:35 AM
#11
Thread Starter
Hyperactive Member
Re: How to create a Form at run-time
Curiosity is always good!
Roughly speaking, use in calculating form's width.
I can make this dummy form at design time but want to make a form at design time temporarily.
-
Oct 17th, 2019, 09:54 AM
#12
Re: How to create a Form at run-time
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
|