Newbie: Creating controls

gen23
06-04-2005, 12:25 AM
Hello,

Is it possible to create controls, like textboxes, labels or buttons, using codes instead of the toolbar?

Thanks!

mrjeffy321
06-04-2005, 01:11 AM
Yes, it is possible to create objects at run-time, through code.

first you need to declare your new object,
then set what the object is,
then add any properties you want to it.

yuo may want to search this forum, I know others have asked this type of question before, like this one,
http://www.visualbasicforum.com/showthread.php?t=218313&highlight=create+objects+runtime
or look at this site,
http://www.vbexplorer.com/VBExplorer/vb_feature/april2000/april2000.asp

VB_Alien
06-04-2005, 06:35 AM
Here is an example of creating command buttons dynamically using control arrays.

gen23
06-04-2005, 07:51 AM
Ok... thank you very much!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum