i have a label in a control, during design time you can change the caption of the control, how do you make it show the change during run time?
Thanx
Printable View
i have a label in a control, during design time you can change the caption of the control, how do you make it show the change during run time?
Thanx
A different instance of the control is instantiated at design time and at run-time.
The only way for a user-control to persist it's properties from design time to run time is to use the 'Property Bag'.
I am not going to explain it in detail here (too long) but you will need the PropBag object and the following events of the UserControl: ReadProperties and WriteProperties.
Hope this points you in the right direction. ;)