is there a way to lock a form from being able to move even with a title bar, kinda the opposite of this tip "How to move a form without a title bar"
Printable View
is there a way to lock a form from being able to move even with a title bar, kinda the opposite of this tip "How to move a form without a title bar"
Under Preferences for the FORM
Moveable = False
If you don't have VB6, you can use the RemoveMenu API function.
Code:Private Declare Function GetSystemMenu Lib "User32" _
(ByVal hWnd As Integer, ByVal bRevert As Integer) As Integer
Private Declare Function RemoveMenu Lib "User32" (ByVal hMenu _
As Integer, ByVal nPosition As Integer, ByVal wFlags As Integer) _
As Integer
Const MF_BYPOSITION = &H400
Private Sub Form_Load()
RemoveMenu GetSystemMenu(hWnd, 0), 1, MF_BYPOSITION
End Sub
You don't need VB6 to use the Moveable property.
Quote:
Originally posted by Megatron
You don't need VB6 to use the Moveable property.
There is no Moveable property in VB4 :rolleyes:.
Don't know about VB5, never used it.
Yes, it's in VB5 as well.