Console applications like cmd edit

Is it possible to create console applications, such as the "Edit" application in CMD with a visual base or C #? I want the program to respond to mouse input, have menus, mssgboxes and windows.

+4
source share
3 answers

Yes it is possible! Instead of doing it completely from scratch, check out Curses Sharp . This is a wrapper for the curses library, which helps in creating such applications.

I must admit, I never used it. Please tell us how this happens.

+7
source

The console API provided by .NET is not suitable for this kind of development. You will need to do a lot of P / Invoke for the platform console API. I would really suggest WinForms / WPF if you need a GUI.

If you really want to do this, you will need to use low-level mouse and keyboard hooks. This will let you get started: http://blogs.msdn.com/b/toub/archive/2006/05/03/589468.aspx

+2
source

If you want it to run in DOS, you cannot (because C # / vb.net does not start in DOS). If you want it to work on Windows, I think you'd better use Windows Forms or WPF.

To answer your question; perhaps it is possible, but it will require a lot of work, and for the above reasons, I do not think it will have a return.

-2
source

All Articles