Connecting Tech Pros Worldwide Forums | Help | Site Map

How to read the String defined in user control

Newbie
 
Join Date: Nov 2009
Posts: 1
#1: 3 Weeks Ago
I have created the user control and exposed one public property which takes collection of strings.that user control i have placed on the form and i am setting values collection string property which i exposed on the user control .Those values are not adding to the List of strings which i defined in the usercontrol

please help me in solving this.



tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,767
#2: 3 Weeks Ago

re: How to read the String defined in user control


If you are setting the values in designer... but then making a new control in code programmatically... the new control would not carry the designer pre-sets because it is a NEW control.

Otherwise... let's see the code for the control... or the parts related to this string collection
Reply