|
-
May 30th, 2001, 12:12 PM
#1
Thread Starter
Member
Forms
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"
-
May 30th, 2001, 12:15 PM
#2
Hyperactive Member
Under Preferences for the FORM
Moveable = False
-
May 30th, 2001, 02:05 PM
#3
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
-
May 30th, 2001, 02:12 PM
#4
You don't need VB6 to use the Moveable property.
-
May 30th, 2001, 02:46 PM
#5
Originally posted by Megatron
You don't need VB6 to use the Moveable property.
There is no Moveable property in VB4 .
Don't know about VB5, never used it.
-
May 30th, 2001, 02:54 PM
#6
Yes, it's in VB5 as well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|