this.Width=30; NOT WORKING!
Posted
by j-t-s
on Stack Overflow
See other posts from Stack Overflow
or by j-t-s
Published on 2010-05-21T03:16:45Z
Indexed on
2010/05/21
3:20 UTC
Read the original article
Hit count: 182
Hi All,
I've been doing this for years. But now it's just not working.
private void Form1_Deactivate(object sender, EventArgs e)
{
this.Size = new Size(30, 29);
txt.Visible = false;
lbl.Visible = false;
}
The form just does not change Width. But, as above, the 3 controls DO become invisible.
Any suggestions?
© Stack Overflow or respective owner