Quote:
Originally Posted by Tarouka
Code:
string Cmd;
while ((Cmd = Console.ReadLine().ToLower()) != "/quit")
{
switch (Cmd)
{
case "/cp": Application.Run(new Form1()); break;
}
}
Wouldn't that'd be lighter and also implement a new command? Also, you don't need to always put the...
Code:
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
...doing it once in the whole app will be fine.
|
Thnx, gonna try it, and yes
You need to add:
Code:
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
or else the buttons won't appear....
#Edit your code doesn't work, soo... I looked at your formula, and generated my own...
Which has a new bug, I can't type/open.. control panel/cp twice...
Code:
{
string Cmd;
while ((Cmd = Console.ReadLine().ToLower()) != "/quit")
if (Cmd == "/cp")
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}