Hi
In windows from application i have add two user control and two text box control in first user control and a button control on second user control. Now i want to fetch both textbox in button click. If any one know then please help me.
thanks in advance................
Loading
Vishal GilbilePosted Mar 12, 2013, 7:31 AM
What you can do is you can create public properties under your user controls and set the property values to that of the TextBoxes.Text property. i.e. your property should return TextBox values. and finally you can access the textboxes value using the following code snippet.
string firstControlFirstTxt=usercontrol1.GetFirstTextBoxValue;
string firstControlSecondTxt=userControl1.GetSecondTextBoxValue;
and similarly for other control also.
Hope that Solves your problem.
With Regards,
Vishal Gilbile.