Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling the X (close) button on a DialogSheet title bar

Status
Not open for further replies.

Imshaad

Programmer
Jun 2, 2003
9
MU
Can anyone tell how to diable the Close button or set it to invisible (like using the ControlBox = False in VB) on a DialogSheet?
 
Don't know how to make it invisible, but this will make it ineffective:
[blue]
Code:
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
  Cancel = True
End Sub
[/color]

(Right-click on the form and select "View Code")
 
To hide x button - see my answer in thread705-555429

combo
 
Thanks all,

it works great.

Greetings from Mauritius.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top