PDA

Click to See Complete Forum and Search --> : New Instance


Muzamil
Nov 18th, 2002, 02:05 PM
hello guys.. whts up
could plz anyone tell me on how to create a new instance of a form controll on runtime? for example.. when i click on the form i want it to create a new command everytime i click thts it....

CrazedWombat
Nov 18th, 2002, 07:18 PM
hey
im a little confused....are u saying that when u click a button on a form u want to add another button? or am i reading u call wrong?

Muzamil
Nov 19th, 2002, 04:35 AM
yes crazedwombat you are just right thts wht i want to happen.. is it really possible?

MHD
Nov 19th, 2002, 07:14 AM
First off: why do yo want to add buttons. is it so you can customize a control box or something?

NoteMe
Nov 19th, 2002, 09:51 AM
I'm not a 100% sure what you want to do. But look at this little silly thing I did, some years ago. It has an array of controls, and is loading one more of that control in a loop, making a loading sequence. Not something you would actually do. But you could use the same technique to make an other instance of a Command Button in an array. But I'm not sure if this would help you. Try it out, and let me know if you need some help or anything...

CrazedWombat
Nov 19th, 2002, 08:18 PM
hey
yea, why would u want to add a command button. learn from noteme's code...it should be good enough, but uh...yea, its possible...but i dont know the exact code...sorry.

NoteMe
Nov 20th, 2002, 01:10 AM
And an other thing I thought about is, how are you going too put some smart code under your command buttons? I can't think of any smart way of putting code under them, that a textbox and one command button couldn't do alone....