Component of WindowsForm
- import nuget package to the project
Install-Package WindowsForms.Console
-
add 'FConsole' component to FormControl (you can see how to)
-
look at sample project (for more example)
-
example codes
fconsole1.WriteLine("text");
this.WriteLine("text");//(extension method)
fconsole1.WriteLine("text",Color.White);
this.WriteLine("text",Color.White);//(extension method)
fconsole1.Write("text");
this.Write("text");//(extension method)
fconsole1.Write("text",Color.White);
this.Write("text",Color.White);//(extension method)
var line = fconsole1.ReadLine();//used in async method
//or
var line = this.ReadLine();//this as any Form (extension method)
var line = await fconsole1.ReadKey(); //used in async method
//or
var line = await this.ReadKey();//(extension method)
- System.Windows.Form
- System
- Microsoft.WindowsDesktop.App.WindowsForm
- component is used in MSniper Project