469,625 Members | 1,086 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

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 1661
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 discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.