Emergent: Getting value of user control and change textboxes

simcat

New member
Joined
Feb 20, 2008
Messages
4
Programming Experience
Beginner
hello there.....

i hope i can find the answer of this question with one of you.

i have a usercontrol made of morethan one textbox. when i change one of the values i want it to reset the values of the textboxes that are not part of the user control they are in the form....

i would really appreciate a fast reply if it's not too much of trouble....

thnx:o
 
It seems that the simplest way to do it would be to create an event in your user control, TextBoxModified, and fire that event anytime a text box is modified. In your main form, create a delegate for that event that will reset the text boxes on the form whenever it is fired.
 
It seems that the simplest way to do it would be to create an event in your user control, TextBoxModified, and fire that event anytime a text box is modified. In your main form, create a delegate for that event that will reset the text boxes on the form whenever it is fired.


dear jshultz....
thnx for you fast reply but....
will you be kind enough to give me an example or a website where i can find one
thnx:)
 
Back
Top