|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Writing an app for both WinForms and Console useForms application, and also as a Console application. If the app is started with no parameters, it should display its window and allow the user to interact with it. If parameters are provided, it should instead run as a console application and should output various information to the standard output channel (so that the output can be redirected if required). By setting my app as a Windows Application, all Console methods are ignored. By setting my app as a Console Application, all attempts to display Windows Forms are ignored. Is there any way to get a single application to act in both of these different ways? Thanks, -- (O)enone You can show windows form even dough your proejct is console type. You
just have to refrence the Windows.Forms.dll. I would suggsest you that you put your logic and everything that does not need a interface in a DLL and then make 3 seperate applications. One for starting either a console or windows version. And then one consoel and one windows version. jan.han***@gmail.com wrote:
> You can show windows form even dough your proejct is console type. You You're right -- and I described the behaviour incorrectly in my original > just have to refrence the Windows.Forms.dll. post. This way it works fine except that when running from within Windows, an empty console window appears in the background, which looks awful. > I would suggsest you that you put your logic and everything that does Thanks for the suggestion!> not need a interface in a DLL and then make 3 seperate applications. > One for starting either a console or windows version. And then one > consoel and one windows version. -- (O)enone
How to retrive Outlook 2003 style gradient color schemes?
Dynamic DataGridView missing horizontal scrollbar Suggestions to reduce memory use when splitting a string Accessing Properties within a Panel Inheritance Copy List(Of type) to another List(Of type) Reading a Webpage Source with Cyrillic Characters Get the Application Icon?? Removing a file with VB.NET Program Serialization of Object Graph (Inheriting ArrayList) |
|||||||||||||||||||||||