Text Box not updating from an event
Hello, Im using C# VS2008 .Net 3.5
I have created a usercontrol which is placed in a windows form, and have a textbox in that control that updates from code behind a button but not from an event.
Any ideas would be appreciated Regards
Kirtan PatelPosted Aug 7, 2009, 10:24 AM
Shane CromptonPosted Aug 7, 2009, 10:16 AM
Kirtan PatelPosted Aug 7, 2009, 10:02 AM
public string changeText
{
get{
return textBox1.Text;
}
set
{
textBox1.Text = value;
}
}
then Try to Update its text like
UserControl1.changeText = "Hello";
ok make Sure that Button you are using have correct Event selected in Property window or not
like below