Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

usercontrol with array property - HELP

Status
Not open for further replies.

kensheehimura1

Programmer
Jun 2, 2003
19
PH
good day, im creating a simple usercontrol,my usercontrol consist of an array of 6 command button, my problem is how can i set the caption of each command button, on the design time, or in the runtime, how can i display the property "Caption" on the propety window, pls help me, thanks, can somebody show me a code for this,
 
Not 100% sure but a potential solution maybe

in case of design time use aset of property pages (use the wizard to create)

& in runtime, expose the objects not as an array, but as a collection

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
thanks for the answer mattknight, but i cant figure it out, can u pls show me an example, thanks,
 

I believe (could be wrong, its been awhile) that you will need to expose Caption1, Caption2...Caption6.

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top