vb.net 2003 for closing

  • Thread starter Thread starter Tym
  • Start date Start date
T

Tym

Hi all,

I know this is probably very basic - bt I;ve never had cause to use
this so...

In a main form (MDI) how do I trap for the form closing with a "do you
want to quit y/n" dialogue box?

If they click no, I want to abort the form closing

advTHANKSance
 
Don't use a fake mail address!!!
In a main form (MDI) how do I trap for the form closing with a "do you
want to quit y/n" dialogue box?

If they click no, I want to abort the form closing

\\\
Private Sub Form1_Closing( _
ByVal sender As Object, _
ByVal e As CancelEventArgs _
) Handles MyBase.Closing
If _
MsgBox( _
"Really close?", _
MsgBoxStyle.YesNo Or MsgBoxStyle.Question _
) = MsgBoxResult.No _
Then
e.Cancel = True
End If
End Sub
///
 
Don't use a fake mail address!!!

It's not - just isn't mine!!

When I started using the groups a few months back, I got bombarded
with 2500 emails over 1 weekend, all to the "spamtrap" email address
used in my messages.

Never again....
 
Tym said:
It's not - just isn't mine!!

When I started using the groups a few months back, I got bombarded
with 2500 emails over 1 weekend, all to the "spamtrap" email address
used in my messages.

Never again....

Is that a valid reason for using someone else's email address (I didn't
check if the mail address exists)? I suggest to always post with a working
email address which is not your primiary address. This will give you a
chance to remove posts you made sooner or later from the Google Groups
archive, for example.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top