VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

This code will disable the 'X' button at the top right corner of the form.

[email protected]  (1 Submission)   Custom Controls/Forms/Menus   VB 6.0   Unknown Difficulty   Sun 10th March 2002   Mon 8th February 2021

This code will disable the 'X' button at the top right corner of the form.

API Declarations


Public Const SC_CLOSE = &HF060
Public Const MF_BYCOMMAND = &H0
Public Declare Function GetSystemMenu Lib "user32" _
(ByVal hwnd As Long, ByVal bRevert As Long) As Long
Public Declare Function DeleteMenu Lib "user32" _
(ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long
Declare Function DrawMenuBar Lib "user32" (ByVal hwnd As Long) As Long


Rate This code will disable the 'X' button at the top right corner of the form. (1(1 Vote))
This code will disable the 'X' button at the top right corner of the form..bas

This code will disable the 'X' button at the top right corner of the form. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters