runtimequesstion

Azrael III
07-19-2003, 09:30 AM
is there a way to add labels or buttons at runtime?

Iceplug
07-19-2003, 09:41 AM
If they are in a control array, you can add a new one at runtime like this:

N = YourCtlName.UBound + 1
Load YourCtlName(N)
YourCtlName.Visible = True
YourCtlName.Move X, Y

Azrael III
07-19-2003, 09:44 AM
thx works fine

reboot
07-19-2003, 09:55 AM
Just so you know, in VB6, you also have Controls.Add, but I think most people would agree that IcePlugs method is best.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum