tags:

views:

117

answers:

3

what is the maximum size of a vb.net form. So that it will consume the whole screen.

A: 

It depends upon your screen-resolution, know your screen resolution, and you can resize it to that. Fortunately, you can just set WindowState to Maximized and vn.net will do it for you automatically.

Sarfraz
+1  A: 
SLaks
You also need to learn to write precise, descriptive questions.
SLaks
A: 

You should use change the "WindowState" property. This will ensure the window is maximized independent of the screen resolution.

In code:

 Me.WindowState = FormWindowState.Maximized
Tomas
In code, but not in VB.Net code.
SLaks
Should be `Me` not `this` `Me.WindowState = FormWindowState.Maximized`
MarkJ
Of course. Silly me. Corrected.
Tomas