PC Review


Reply
Thread Tools Rate Thread

chane what 'x' button on top right of the form does

 
 
sam
Guest
Posts: n/a
 
      31st Jul 2009
How can I code the 'x' button located on the top right of the form such that
it quits the application? or make it do something that I want.

Thanks in advance
 
Reply With Quote
 
 
 
 
john
Guest
Posts: n/a
 
      31st Jul 2009
paste behaind form:

Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)

If CloseMode = 0 Then

'do something

MsgBox "You Pressed X"

End If

End Sub
--
jb


"sam" wrote:

> How can I code the 'x' button located on the top right of the form such that
> it quits the application? or make it do something that I want.
>
> Thanks in advance

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
language chane for xp home chris Windows XP New Users 7 20th Jun 2009 02:24 AM
IE7 Unable to chane settings =?Utf-8?B?UG9sbGFw?= Windows XP Internet Explorer 3 30th Oct 2006 01:48 AM
why when I chane appointment am I not prompted for any text? =?Utf-8?B?VG9t?= Microsoft Outlook Calendar 0 28th Dec 2005 10:06 PM
how can you chane the font size in a combo box? =?Utf-8?B?TWlzc2lsZQ==?= Microsoft Excel Misc 1 21st Apr 2005 08:45 AM
Chane Primary Monitoron Laptop jeff Windows XP General 1 13th Mar 2004 01:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:34 PM.