J
Jose
Hello, I'm programming a form that the user can input data. In this form I
have one TexBox whit PasswordChar. When this TexBox recieves the Focus, it
activate inputPanel1_EnabledChanged Event. Why?????, the others TexBox that
not have PasswordChar property not make this event.
This is part of my code:
Inicialization
.....
this.textBoxPass.Location = new System.Drawing.Point(136, 112);
this.textBoxPass.PasswordChar = '*';
this.textBoxPass.Size = new System.Drawing.Size(80, 20);
this.textBoxPass.Text = "";
this.inputPanel1.EnabledChanged += new
System.EventHandler(this.inputPanel1_EnabledChanged);
......
private void inputPanel1_EnabledChanged(object sender, EventArgs e)
{
if (inputPanel1.Enabled )
{
tabControl1.Size = new System.Drawing.Size (tabControl1.Size.Width ,
tabControl1.Size.Height - inputPanel1.Bounds.Size.Height);
}
else
{
tabControl1.Size = new System.Drawing.Size (tabControl1.Size.Width ,
tabControl1.Size.Height + inputPanel1.Bounds.Size.Height);
}
}
Thanks.
Sorrry my English is not very good
have one TexBox whit PasswordChar. When this TexBox recieves the Focus, it
activate inputPanel1_EnabledChanged Event. Why?????, the others TexBox that
not have PasswordChar property not make this event.
This is part of my code:
Inicialization
.....
this.textBoxPass.Location = new System.Drawing.Point(136, 112);
this.textBoxPass.PasswordChar = '*';
this.textBoxPass.Size = new System.Drawing.Size(80, 20);
this.textBoxPass.Text = "";
this.inputPanel1.EnabledChanged += new
System.EventHandler(this.inputPanel1_EnabledChanged);
......
private void inputPanel1_EnabledChanged(object sender, EventArgs e)
{
if (inputPanel1.Enabled )
{
tabControl1.Size = new System.Drawing.Size (tabControl1.Size.Width ,
tabControl1.Size.Height - inputPanel1.Bounds.Size.Height);
}
else
{
tabControl1.Size = new System.Drawing.Size (tabControl1.Size.Width ,
tabControl1.Size.Height + inputPanel1.Bounds.Size.Height);
}
}
Thanks.
Sorrry my English is not very good