VB shut down queery

Permabanned
Joined
28 Oct 2006
Posts
6,552
Location
Bournemouth
I'm making a super simple program with this outline

You stick it in the startup folder, you boot up

Window pops up, asks you to enter anything you want reminding about when you log off (i.e. memory stick, pick up news paper etc)

Then being vb it obviously remebers this.

However i need to trigger a msgbox when the end command is issued. Sort of like when you have a word document open and you click shutdown it will pop up asking if you want to save discard or cancel.

I'm just using

If (Label1.Text = "") Then End Else Me.Hide() ---- (where label1 is the place you type your reminder)

to put the program in dormant mode.

However i don't know where to insert this code:

If (Label1.Text = "") Then End Else MsgBox(Label1.Text, MsgBoxStyle.Exclamation, "REMEMBER")

Any help much appreciated.
 
Nope codes not working. The new vb's just don't seem to work as well as the old vb6.

If (Label1.Text = "") Then End Else Me.Hide()

that bit of code seems non effective. If you don't type anything the program doesn't end and when i run the kill the process nothing happens.
 
cool it works. See i toyed with all the preset form functions in the drop down list and i saw deactivate form closing etc etc but due to me not publishing the exe first i didn't know that vb terminated rather than closed it normally. Thanks it is fully working now :)
 
Back
Top Bottom