|
-
Jul 17th, 2001, 08:47 PM
#1
Thread Starter
Lively Member
How to disable resize,and move
is there a way to disable the three windows buttons in the top right corner of the window? and disable move and resize?
I'm a beginner.
------------------------------------------------
Your impossible ego ***** is like a
Megalomaniacal tab on my tongue
You *****in' touch me I will rip you apart

-
Jul 17th, 2001, 08:50 PM
#2
Q1 : Set the ControlBox property to False (takes it away, doesn't disable)
Q2.5 : Set the BorderStyle property to Fixed Single
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 17th, 2001, 08:51 PM
#3
Junior Member
Set the properties of the form :
control box - false
movable - false
border - single fixed
-
Jul 17th, 2001, 09:27 PM
#4
You can also use the RemoveMenu API function to disable all these if you wish to do it in runtime.
VB 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), 0, MF_BYPOSITION
RemoveMenu GetSystemMenu(hWnd, 0), 0, MF_BYPOSITION
RemoveMenu GetSystemMenu(hWnd, 0), 0, MF_BYPOSITION
RemoveMenu GetSystemMenu(hWnd, 0), 0, MF_BYPOSITION
RemoveMenu GetSystemMenu(hWnd, 0), 0, MF_BYPOSITION
RemoveMenu GetSystemMenu(hWnd, 0), 0, MF_BYPOSITION
RemoveMenu GetSystemMenu(hWnd, 0), 0, MF_BYPOSITION
End Sub
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
|