Results 1 to 6 of 6

Thread: Forms

  1. #1

    Thread Starter
    Member
    Join Date
    May 2001
    Posts
    50

    Angry 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"

  2. #2
    Hyperactive Member
    Join Date
    Aug 1999
    Posts
    482
    Under Preferences for the FORM

    Moveable = False

  3. #3
    Matthew Gates
    Guest
    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

  4. #4
    Megatron
    Guest
    You don't need VB6 to use the Moveable property.

  5. #5
    Matthew Gates
    Guest
    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.

  6. #6
    Megatron
    Guest
    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
  •  



Click Here to Expand Forum to Full Width