I am making a program in Visual Basic 2010 Express, and i was wondering if there was a way if the form (form1/me) can be maximized by dragging form1 to the top of the screen. So far I have this code:
If Cursor.Position.Y = Screen.PrimaryScreen.WorkingArea.Height Then
Me.WindowState = FormWindowState.Maximized
End If
Thanks in advance.

New Topic/Question
Reply



MultiQuote





|