473,405 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

vb.net 2003 for closing

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

Nov 21 '05 #1
8 1129
"Tym" <bi********@microsoft.com> schrieb:

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
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2
"Tym" <bi********@microsoft.com> schrieb:

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
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #3
Tym
On Thu, 11 Nov 2004 14:21:52 +0100, "Herfried K. Wagner [MVP]"
<hi***************@gmx.at> wrote:
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....
Nov 21 '05 #4
Tym
On Thu, 11 Nov 2004 14:21:52 +0100, "Herfried K. Wagner [MVP]"
<hi***************@gmx.at> wrote:
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....
Nov 21 '05 #5
Tym
On Thu, 11 Nov 2004 14:21:52 +0100, "Herfried K. Wagner [MVP]"
<hi***************@gmx.at> wrote:
"Tym" <bi********@microsoft.com> schrieb:

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?

Thanks
Nov 21 '05 #6
Tym
On Thu, 11 Nov 2004 14:21:52 +0100, "Herfried K. Wagner [MVP]"
<hi***************@gmx.at> wrote:
"Tym" <bi********@microsoft.com> schrieb:

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?

Thanks
Nov 21 '05 #7
"Tym" <bi********@microsoft.com> schrieb:
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....


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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #8
"Tym" <bi********@microsoft.com> schrieb:
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....


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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: dsnyder | last post by:
This HTML has a bit of Javascript at the end that puts the initial focus on the userID field. It works great on Windows2000 running IE6, but the initial focus never goes to the userID field on...
0
by: Peter Childs | last post by:
Thought this might intrest any Postgres Users in the South East England area. The main talk at this meeting is on Postgres Vs MySql. Peter Childs -------- Original Message -------- Subject:...
6
by: Ryan Muller | last post by:
My company just upgraded from Access 97 to Access 2003 today and we are having some issues in a database that generates a Word document from information selected in a form. Here is the code we...
9
by: George McCullen | last post by:
I have an Outlook 2003 using Exchange Server 2003 Public Contacts Folder containing 20,000 Contacts. I am writing a VB .Net 2003 program that loops through all the contacts in a "for each oCt in...
2
by: harry | last post by:
Hi, After installing VS.2003, I just upgraded a VS.NET 2002 project to VS.NET 2003. I upgraded because VS.NET 2003 is slow and buggy. However, I find VS.NET 2003 is worse in terms of bugs....
0
by: Tym | last post by:
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? ...
6
by: RG | last post by:
Hello – I’m relatively new to VB and I’m not getting how to do Dispose correctly from my readings. I have an application with 3 Forms (with a lot of logic going on within each): Form1,...
1
by: i8mypnuts | last post by:
Could someone please help? I am using the 'defaultprt.zip' tool provided by Ken Getz to change the default printer via VBA code (code below). My problem is that once the default printer has been...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.