Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Control box MIN/MAX buttons
Name: CJ Date: October 11, 2002 at 10:39:58 Pacific OS: Win 2k CPU/Ram: 1.3G
Comment:
Can someone tell me in VB6 if there is a way that if a user clicks the X or presses AltF4 to close my form make it display an msgbox that asks if they are sure they want to exit. The only way i have around it so far is to make the control box false and force the user to use File then exit on my menu bar and display the message box that way. Any help would be appreciated.
Name: Manish Date: October 11, 2002 at 11:00:47 Pacific
Reply:
you can write the following piece of code in query unload event of your form
Dim response As String response = MsgBox("Do you really want to quit?", vbYesNo, "MyVBProgram") If response = vbYes Then Unload Me Else End If
actually this is hald done ... its giving the message and asking for the response but when the user clicks no, then also it shuts down. if you could find the remedy for it then plz reply back either to my mail or this thread.
Summary: Hi, Another question (I never had as many questions as since i started with vc++!). I'm trying to print a lot of stuff to an edit box. that's quite easy, I use the ReplaceSel function. The problem is ...
Summary: Hi there, In the right hand corner of a form you have the minimise, maximise and close buttons. Is it possible to edit the code of one of these buttons? And if so how do you do it? Thanks in advance ...
Summary: first you need to create a HLP file using WinHelp. then associate this file with your VB application. set the "whats this help" properties to true, remove the min and max buttons set the whats this he...