How 2 prevent a form resize when double clicking its title bar ?

Dear all.

I want 2 have a title bar but when it is being double clicked my beautiful form getting resized (should B maximized at all times)

I was trying 2 handle the Resize event - but how can I catch the resize and send a cancellation message instead ?
Any help, clues or samples R very blessed.

[304 byte] By [Yovav] at [2007-12-17]
# 1
You can set the minimum and maximum size of your form. If you set these to the screen res, then even if the user double clicks, the form will not resize. It's a bit user hostile tho, why can't your form resize itself to whatever part of the screen the user wants ?
cgraus at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2
Maximized at all times? Set the MaximizeBox and MinimizeBox properties to false and and the WindowState property to Maximized at design-time, and don't worry about it again.
CodeWriter at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 3
The thing with the WindowState and MaximizeBox and MinimizeBox did not work,

it only work if I set my window size to a specific size - then its resizing to that size,
Does anyone know how can I get the current screen Hieght and Width and what should I add or deduct from that in order to set the size of the form exactly as big as the maximized window ?

Thanks in advance.

Yovav at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 4
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsscreenclasstopic.asp

The Screen class is what you want. Screen.PrimaryScreen.Width and .Height will work, on a single monitor system ( you can work this out with the Screen class as well )

cgraus at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 5
I'm overwhelmed, don't U just like the .NET ?
Yovav at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 6
Yeah, I miss C++ in a lot of ways, but .NET certainly makes a lot of stuff easy.
cgraus at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 7

Yeah, I love VC too... but U know - U can use .NET classes in there too :-)

Yovav at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 8

how do i open a secound form in vb express ? anybody help please

i made

form1
form2

i want to be able to open secound form from the first Tongue Tied this is so hardSad

mp4city at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 9
is it a joke ?

:-)

if not then try:

form2.Show()

Yovav at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...