Hi, im having a hard time trying to create controls at runtime, i tried the help library of msdn but it didint help much, i will appreciate any help, thanks!!
Printable View
Hi, im having a hard time trying to create controls at runtime, i tried the help library of msdn but it didint help much, i will appreciate any help, thanks!!
I can see what u mean ...
I had the same prob ..
You need to put a control on the form
make its index property to 0
when ever you want to make another one
it goes like
load controlname (index number that doesn't exist yet)
then you can change any of its proprties example:
controlname (new index).caption="Ggg"
helped ?
In VB6 you can create the button without using any controlarrays:
Code:'in declarations
Public WithEvents cb As CommandButton
'in code
Set cb = Controls.Add("VB.CommandButton", "commandos")
cb.Visible = True
Thanks, that helped a lot !!!!!!