form resize in vb.net

G

Guest

--
hello

How do you start a form maximized in VB.net So that the form width and
height properties are also set at screen maximum. Just setting the form to
maximise doesnt change the width/height properties of the form.
This I found out is a problem with VB6 and I am guessing the same problem
with vb.net

thanks



Expand AllCollapse All
 
C

Cor Ligthert

john andrew said:
--
hello

How do you start a form maximized in VB.net So that the form width and
height properties are also set at screen maximum. Just setting the form to
maximise doesnt change the width/height properties of the form.
This I found out is a problem with VB6 and I am guessing the same problem
with vb.net

Luckily it does not change the width and height of a form when you set the
form to maximum, when that should be they could delete that property.

So I don't understand why you write that this is a problem with VBNet.

You can set the width and height to the screensize or set the windowstate to
maximum. Both seems for me rediculous. Although setting programmaly width
and height always to screensize in my opinion a kind of unwanted UI
behaviour with the exception of first start where it can be done..

http://msdn.microsoft.com/library/d...l/frlrfsystemwindowsformsscreenclasstopic.asp

I hope this helps


Cor
 
H

Herfried K. Wagner [MVP]

Cor Ligthert said:
Luckily it does not change the width and height of a form when you set the
form to maximum, when that should be they could delete that property.

That's wrong. The form's 'Height'/'Width'/'Size' properties reflect the
current size of the form, not the size of the form in its normal state.

Save and restore Form position and layout with this component
<URL:http://www.codeproject.com/cs/miscctrl/RealPosition.asp>

Form Placement Component
<URL:http://www.codeproject.com/csharp/Placement.asp>
 

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