Exit application from a menu

  • Thread starter Thread starter Zack Whittaker \(R2 Mentor\)
  • Start date Start date
Z

Zack Whittaker \(R2 Mentor\)

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!
 
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,
 
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!
 
Change the FormBorderStyle property of your form/dialog to one of the Fixed
values such as FixedDialog.

Brendan
 
Back
Top