G
Gelios
Hello all!
I have a Windows.Forms code where I dynamically created controls. How
can I access to properties from event handler?
For example:
createSomeControls()
{
TextBox textBox = new TextBox();
Button doSomeAction = new Button();
doSomeAction.Click += new EventHandler(doSomeAction_Click);
}
private void btnNewSkillCancel_Click(object sender, EventArgs e)
{
// how do I access textBox.Text?
}
Thanks in advance.
I have a Windows.Forms code where I dynamically created controls. How
can I access to properties from event handler?
For example:
createSomeControls()
{
TextBox textBox = new TextBox();
Button doSomeAction = new Button();
doSomeAction.Click += new EventHandler(doSomeAction_Click);
}
private void btnNewSkillCancel_Click(object sender, EventArgs e)
{
// how do I access textBox.Text?
}
Thanks in advance.