473,404 Members | 2,213 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,404 software developers and data experts.

Form1.closing in VB2005???

cj
In VB2003I have been using an exit menu item that issues me.close() then
Private Sub Form1_Closing took care of closing everything down. I don't
see a closing event for form1 in VB2005. What takes it's place?
Dec 13 '06 #1
9 2557
Form1.FormClosing()

cj wrote:
In VB2003I have been using an exit menu item that issues me.close() then
Private Sub Form1_Closing took care of closing everything down. I don't
see a closing event for form1 in VB2005. What takes it's place?
Dec 13 '06 #2
TP
FormClosing

cj wrote:
In VB2003I have been using an exit menu item that issues me.close()
then Private Sub Form1_Closing took care of closing everything down.
I don't see a closing event for form1 in VB2005. What takes it's
place?
Dec 13 '06 #3
It's called FormClosing now. (Irritating, isn't it?)

There's also an event called FormClosed that will trigger *after*
the form is closed.

Robin S.
--------------------------------------------------
"cj" <cj@nospam.nospamwrote in message
news:ev**************@TK2MSFTNGP02.phx.gbl...
In VB2003I have been using an exit menu item that issues me.close()
then Private Sub Form1_Closing took care of closing everything down.
I don't see a closing event for form1 in VB2005. What takes it's
place?

Dec 13 '06 #4
cj
Thanks, TP and Izzy! That was easy.

Izzy wrote:
Form1.FormClosing()

cj wrote:
>In VB2003I have been using an exit menu item that issues me.close() then
Private Sub Form1_Closing took care of closing everything down. I don't
see a closing event for form1 in VB2005. What takes it's place?
Dec 13 '06 #5
cj
Irritating, yes. I hope they had a good reason for it but ...

Yea, I knew "closed" existed but haven't had a use for it yet.
RobinS wrote:
It's called FormClosing now. (Irritating, isn't it?)

There's also an event called FormClosed that will trigger *after*
the form is closed.

Robin S.
--------------------------------------------------
"cj" <cj@nospam.nospamwrote in message
news:ev**************@TK2MSFTNGP02.phx.gbl...
>In VB2003I have been using an exit menu item that issues me.close()
then Private Sub Form1_Closing took care of closing everything down.
I don't see a closing event for form1 in VB2005. What takes it's
place?

Dec 13 '06 #6
cj wrote:
Irritating, yes. I hope they had a good reason for it but ...
FormClosing has an argument that tells *why* the form closed.

Dec 13 '06 #7
That's a good thing. But they didn't have to change the
name from Closing to FormClosing. (Although actually,
I guess they changed it from Unload to FormClosing). They
didn't change the Load event to FormLoading. Where's the
consistency? Oh, the drama of it all! ;-)

Robin S.
----------------
"Chris Dunaway" <du******@gmail.comwrote in message
news:11**********************@j72g2000cwa.googlegr oups.com...
cj wrote:
>Irritating, yes. I hope they had a good reason for it but ...

FormClosing has an argument that tells *why* the form closed.

Dec 14 '06 #8
RobinS wrote:
That's a good thing. But they didn't have to change the
name from Closing to FormClosing. (Although actually,
Since the Closing event is still present (though deprecated), perhaps
they changed the name to avoid causing any further backwards
compatibility problems.

Dec 14 '06 #9
Ah, I see. Fair enough. Well, they could call it "George"
and I'd still use it. I'm just *that* flexible. ;-)

Robin S.
----------------------------
"Chris Dunaway" <du******@gmail.comwrote in message
news:11*********************@73g2000cwn.googlegrou ps.com...
RobinS wrote:
>That's a good thing. But they didn't have to change the
name from Closing to FormClosing. (Although actually,

Since the Closing event is still present (though deprecated), perhaps
they changed the name to avoid causing any further backwards
compatibility problems.

Dec 14 '06 #10

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

Similar topics

1
by: thomasp | last post by:
I get the following error when closing VB2005 beta 2. Everything runs fine. Just wondering what the error is and how to eliminate it. ******** The control System.Windows.Forms.MdiClient has...
4
by: thomasp | last post by:
Using VB2005 Beta 2 If I use Application.Run(New Form1) in the below code. Then code like TAM.Form1.rtbAllAcq.Text = aryStatistics(0) that is used to update a richtextbox on Form1 does not work....
3
by: Karan | last post by:
I am calling finalize when form2 loads and deactivates form1 which closes form1. However, same thing is not happening in form2 because finalize is already called. Does anybody has solution to it....
6
by: ProteusGak | last post by:
Hi, new membership and first post. I am working in VB 2005, windows forms and would like to know how to open form2 based on the user's selection from a combobox or listbox from say, form1. Thank...
0
by: LostInMD | last post by:
Hi, I am loading word with vb2005 customized commandbars. During the load of the Word exe, the exe automatically opens a new document. I am having difficulty "activating" the open document...
3
by: Arne Beruldsen | last post by:
The migration from VB6 is anything but easy. Ok...I have an introductory form (start-up is via sub main) and then several succeeding forms which gather some info. As soon as the info is gathered...
1
by: John Dann | last post by:
Running VB2005 on Windows XP SP2: I've started to get type initializer errors on Form1 whenever I try to run a project within the IDE - this never used to happen. I can open the project within...
3
by: Andy | last post by:
So, I'm playing around with VB and tries to get the hang things. When I add a form to my application, and I begin to add code to the form, it stars with " Public Class form1" But is Form1 a class...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.