Hope you got my other message. .NET has no native shutdown method based on my searches. However, the web page I referenced includes a link to an article with API wrappers to do this from .NET. If you are going to wrap API calls, however, I would think that a native Win32 language is a better choice (e.g., C++) -- unless you're just talking about a small part of the application. One of the objectives of .NET is to shield developers from the Win32 API and its complexities. It is possible to write a console mode application with .NET classes and methods. An example is the dual mode fruit basket program I did at http://EmpowermentZone.com/dm_fruit.zip If an application has a console window, then I think it has to be a console executable at heart -- there is no way to close that window completely (without possibly tricky work-arounds that would be inadvisable). A console executable can launch a GUI window as well though. Jamal On Thu, 10 Apr 2008, Tyler Littlefield wrote: > Date: Thu, 10 Apr 2008 08:18:45 -0600 > From: Tyler Littlefield <tyler@xxxxxxxxxxxxx> > Reply-To: programmingblind@xxxxxxxxxxxxx > To: programmingblind@xxxxxxxxxxxxx > Subject: Re: a couple quick c# questions. > > Hello, > I'm interested in system shutdown, at the moment, but would like to find out > where it's located in the .net, in case I have to use it later on. I'd like > to also get hooks set up, and process management. > Thanks, > ----- Original Message ----- > From: "Jamal Mazrui" <empower@xxxxxxxxx> > To: <programmingblind@xxxxxxxxxxxxx> > Sent: Thursday, April 10, 2008 6:08 AM > Subject: Re: a couple quick c# questions. > > > > What parts of the Windows API are you interested in? > > Jamal > > On Wed, 9 Apr 2008, Tyler > > Littlefield wrote: > > > >> Date: Wed, 9 Apr 2008 18:47:56 -0600 > >> From: Tyler Littlefield <tyler@xxxxxxxxxxxxx> > >> Reply-To: programmingblind@xxxxxxxxxxxxx > >> To: programmingblind@xxxxxxxxxxxxx > >> Subject: Re: a couple quick c# questions. > >> > >> ok. I found the reference. I guess I need to look around and find out if > >> it'll let me access the windows api. > >> ----- Original Message ----- > >> From: Ken Perry > >> To: programmingblind@xxxxxxxxxxxxx > >> Sent: Wednesday, April 09, 2008 6:21 PM > >> Subject: RE: a couple quick c# questions. > >> > >> > >> All you have to do is do > >> > >> using System.Windows.Forms > >> > >> Then you can use things like MessageBox and I think you can even do the > >> system menu but I have never tried to. You will also have to add a > >> reference to the .net library for windows.forms but that is pretty simple > >> to. > >> > >> Ken > >> > >> > >> > >> ------------------------------------------------------------------------------ > >> From: programmingblind-bounce@xxxxxxxxxxxxx > >> [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Tyler > >> Littlefield > >> Sent: Wednesday, April 09, 2008 5:02 PM > >> To: programmingblind@xxxxxxxxxxxxx > >> Subject: a couple quick c# questions. > >> > >> > >> Hello, > >> I've got a couple questions. I'm looking for a class, that would allow > >> me to add a drop-down menu onto the system menu of a console. > >> Also, is there a way to either a, put a console into a windows app, or > >> b, use the windows namespace in a console? There are a ton of things I'd > >> like to do with the console, working on a program via a console, but I > >> need more flexability--accessing the windows namespace would help, or... > >> Is there another way to get to the API functions without using the > >> windows namespace? > >> Thanks, > >> ~~TheCreator~~ > > __________ > > View the list's information and change your settings at > > //www.freelists.org/list/programmingblind > > > > __________ > View the list's information and change your settings at > //www.freelists.org/list/programmingblind > __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind