Ho do I make an object at runtime? Lets say I want a textbox to appear everytime someone clicks on a button, how would I do that?
Printable View
Ho do I make an object at runtime? Lets say I want a textbox to appear everytime someone clicks on a button, how would I do that?
The easiest wat is to create a control array on the form eg: text1(0). You do this by adding a textbox and setting its index.
While the program is running you call :
VB Code:
load text1(1)
Next you set the properties of the new control and set its visible property to true.
This way you will be able to reponsd to events of controls loaded dynamically without having to use subclassing.
I'm sorry but I'm a slow learner. Could you please walk me through how to do just that?
What I really need is a 20 by 20 grid of frames which are empty. I then need to name them in a way where the bottom left one is 1,1 and the top right one 20,20.
Dear sir
Please find your solution enclosed herewith
Regards
Mike Thomson!!!
wow, that was formal, thx anyway.
Regards Sid.
Gladly mate!!!