L
Luca Paganelli
Hi everybody.
I've got a simple but bothering problem.
I've just written a little application in C#.
I've got a set of business logic classes and a window forms GUI released
as a set of libraries (dll).
So the GUI class extends the System.Windows.Forms.Form base class
and anything else (no Main method).
From the class in which I've written the Main method and that's included
in another "project" and namespace and it's compiled as an "exe" project
I do some "configuration" activities (read from files etc) and then
I create an instance of the GUI class with:
Application.Run(new GUIForm());
Everything works very well but I can't close the Command Prompt (DOS)
Window without closing the GUI as well!
As I read in the documentation it seems the only one way not to have
the DOS window opened is to implement a Main method in the GUI class
in which invoking the Application.Run static method.
But my original idea was to package the presentation logic class in a DLL
and call them by another executable class - as I explained.
Do you think there's a solution?
Thaks to everything who'll pay attention for my problem.
Sorry for the "English".
Luca Paganelli.
I've got a simple but bothering problem.
I've just written a little application in C#.
I've got a set of business logic classes and a window forms GUI released
as a set of libraries (dll).
So the GUI class extends the System.Windows.Forms.Form base class
and anything else (no Main method).
From the class in which I've written the Main method and that's included
in another "project" and namespace and it's compiled as an "exe" project
I do some "configuration" activities (read from files etc) and then
I create an instance of the GUI class with:
Application.Run(new GUIForm());
Everything works very well but I can't close the Command Prompt (DOS)
Window without closing the GUI as well!
As I read in the documentation it seems the only one way not to have
the DOS window opened is to implement a Main method in the GUI class
in which invoking the Application.Run static method.
But my original idea was to package the presentation logic class in a DLL
and call them by another executable class - as I explained.
Do you think there's a solution?
Thaks to everything who'll pay attention for my problem.
Sorry for the "English".
Luca Paganelli.