Resize event

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.
 
T

tracktor

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top