Is there any way at all to create a command button at run time?
Printable View
Is there any way at all to create a command button at run time?
Read these two threads:
http://forums.vb-world.net/showthrea...threadid=20242
http://forums.vb-world.net/showthrea...threadid=20166
Or search the Forum on this site using:
Controls at Runtime
Create Controls at Runtime
One of those two'll be good if those two threads aren't enough.
And from your subject line: Bloody annoying!
I bet your English ;].
[Edited by Matthew Gates on 07-04-2000 at 11:36 PM]
Cheers. That helped.
For anybody who can't be f***ed visiting the links above here's what's there:
And to think I was actually just going to have 30 command buttons.Code:Private Command1_Click()
For x = 1 to 6
Load Command1(x) 'create instance, but in an array
Command1(x).Move x, y, width, height
Next x
End Sub
Hi,
In VB 6.0 it is possible to create command button or virtually any control at runtime.
However creating command buttons with array is different story. Because you need to have a control already in the design time.
Get me at http://vbpage.to, the only free redirect URL for VB programmers
Bye
Rajesh Kannan