473,568 Members | 2,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1768
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.Exi t();
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******** ********@TK2MSF TNGP09.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
1700
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 app. If I make an menu item File->Exit, I would like this to equivalate pressing the close form icon in the upper right corner. How do I link these two...
10
4983
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
7027
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 question it causes the application to flash and deactivate. I was able to activate it again but it looks sort of stupid to have the application flash when...
11
2261
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 that I now need to use a different exit routine. In 2001, I could use a basic escape with a do {}while(ch!= 27); Now that apparently does not work....
0
7693
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7916
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8117
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7660
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7962
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6275
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
932
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.