I have a user control with a textbox in a win forms application.
I would like to change the property of that textbox using the properties window of visual studio .
I am using that control in various forms of same project ,is it possible?
I have set the modifier property of text box as public and set following property in the user control:
public TextBox mytextBox
{
get { return textBox1; }
set { textBox1 = value; }
}
Thanks in Advance.
What is the intent of doing this? Are you trying to have “one TextBox control shared by multiple forms” (that is not really practical). However you can set up your forms in such a way as to have all forms update in response to a single change.