473,396 Members | 1,702 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,396 software developers and data experts.

Exit application from a menu

I think I'm starting to get the hang of this you know... bit by bit things are starting to
get much easier! :oD

Just wondering though, I've got a nice menu with popup dialogs with about boxes... ahhh...
but how can I put an "Exit" feature on my main menu at the top so that they can quit the
application?

Thanks :o)

--
Zack Whittaker
Microsoft Beta (Windows Server R2 Beta Mentor)
» ZackNET Enterprises: www.zacknet.cjb.net
» MSBlog on ResDev: http://msblog.resdev.net
» This mailing is provided "as is" with no warranties, and confers no
rights. All opinions expressed are those of myself unless stated so, and not
of my employer, best friend, mother or cat. Let's be clear on that one!
Nov 17 '05 #1
3 1762
Hi,

Just put a menuitem as usual, double click over it, it will create a new
method that respond to the click of it, then inside the method just put
Application.Exit();
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Zack Whittaker (R2 Mentor)" <za***********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I think I'm starting to get the hang of this you know... bit by bit things
are starting to get much easier! :oD

Just wondering though, I've got a nice menu with popup dialogs with about
boxes... ahhh... but how can I put an "Exit" feature on my main menu at
the top so that they can quit the application?

Thanks :o)

--
Zack Whittaker
Microsoft Beta (Windows Server R2 Beta Mentor)
» ZackNET Enterprises: www.zacknet.cjb.net
» MSBlog on ResDev: http://msblog.resdev.net
» This mailing is provided "as is" with no warranties, and confers no
rights. All opinions expressed are those of myself unless stated so, and
not
of my employer, best friend, mother or cat. Let's be clear on that one!

Nov 17 '05 #2
Excellent :o)

Also, how do you stop making dialog boxes resizable? When I'm making my "About" box, I
don't want the end user to be able to resize it, and I can't find anything in the
Properties box at all!

Thanks again,

--
Zack Whittaker
Microsoft Beta (Windows Server R2 Beta Mentor)
» ZackNET Enterprises: www.zacknet.cjb.net
» MSBlog on ResDev: http://msblog.resdev.net
» This mailing is provided "as is" with no warranties, and confers no
rights. All opinions expressed are those of myself unless stated so, and not
of my employer, best friend, mother or cat. Let's be clear on that one!
Nov 17 '05 #3
Change the FormBorderStyle property of your form/dialog to one of the Fixed
values such as FixedDialog.

Brendan
"Zack Whittaker (R2 Mentor)" wrote:
Excellent :o)

Also, how do you stop making dialog boxes resizable? When I'm making my "About" box, I
don't want the end user to be able to resize it, and I can't find anything in the
Properties box at all!

Thanks again,

--
Zack Whittaker
Microsoft Beta (Windows Server R2 Beta Mentor)
» ZackNET Enterprises: www.zacknet.cjb.net
» MSBlog on ResDev: http://msblog.resdev.net
» This mailing is provided "as is" with no warranties, and confers no
rights. All opinions expressed are those of myself unless stated so, and not
of my employer, best friend, mother or cat. Let's be clear on that one!

Nov 17 '05 #4

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

Similar topics

3
by: Jesper Denmark | last post by:
Hi, What is the standard code for closing down an application?. Application.Exit(); Works fine but I'm worried that its not the same as the eventhandler created by the ide for closing down an...
10
by: Andy | last post by:
In C, we can use "exit" to exit the program.But how can we exit from a assemble program?
1
by: Chris Cairns | last post by:
I have a MDI Application and would like to prompt the user before exit. I placed the following in the FormClosing event. It appears to work properly, however when a user answers no to the...
11
by: =?Utf-8?B?U3RldmVEQjE=?= | last post by:
Hi all. I'm using VS 2008 Express C++. I created a console application back in 1999, and updated it for VC++ 6.0 in 2001. I've updated again this past month, and have found enough differences...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.