|
-
Nov 8th, 1999, 10:51 PM
#1
Thread Starter
Fanatic Member
Any ideas how to turn off/disable the X (control box?) in the top right corner of a form in VBA? I know in VB you just turn of the control box property, but VBA doesn't seem to have it... (note, three .'s - happy???)
-
Nov 8th, 1999, 11:00 PM
#2
Place the following in the form's QueryUnload event.
Code:
If UnloadMode = vbFormControlMenu Then
Cancel = True
End If
------------------
Marty
-
Nov 8th, 1999, 11:05 PM
#3
Thread Starter
Fanatic Member
Hey! It works. Cool, thanks very much, Marty.
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
|