Resize event

  • Thread starter Thread starter tracktor
  • Start date Start date
T

tracktor

In the Resize event of a form, I am trying to show the Width of the form in
the text box. This is the code I have been trying but is not working

textBox1.Text = this.Size.Width.ToString();

any help is appreciated.
 
That was the correct code I just needed to resize it before it gave me the
width. it didn't show me the width when I loaded the program, so I added the
resize event to the load event.
 
Back
Top