https://github.com/msx752/windowsforms.console
Component for WindowsForm
https://github.com/msx752/windowsforms.console
console-application console-visualization fconsole windows-forms winformconsole winforms-controls
Last synced: 3 months ago
JSON representation
Component for WindowsForm
- Host: GitHub
- URL: https://github.com/msx752/windowsforms.console
- Owner: msx752
- License: mit
- Created: 2017-05-22T15:58:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T10:13:40.000Z (10 months ago)
- Last Synced: 2025-04-09T23:37:29.921Z (3 months ago)
- Topics: console-application, console-visualization, fconsole, windows-forms, winformconsole, winforms-controls
- Language: C#
- Homepage:
- Size: 1.43 MB
- Stars: 21
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
[](https://www.nuget.org/packages/WindowsForms.Console)
[](https://www.nuget.org/packages/WindowsForms.Console)
[](https://ci.appveyor.com/project/msx752/windowsform-console)# WindowsForms.Console
Component of WindowsForm# Usage
- import nuget package to the project```
Install-Package WindowsForms.Console
```
- add 'FConsole' component to FormControl ([you can see how to](https://stackoverflow.com/questions/2101171/how-to-add-user-control-in-the-toolbox-for-c-net-for-winforms-by-importing-the))- look at sample project [(for more example)](https://github.com/msx752/WindowsForms.Console/tree/master/SampleProject/SampleFormApplicationCore)
- example codes
```c#
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)
```
# Supported Platforms
[moved to security.md](https://github.com/msx752/WindowsForms.Console/blob/master/SECURITY.md)# Dependencies
- System.Windows.Form
- System
# FrameworkReferences for the .NetCore and upper
- Microsoft.WindowsDesktop.App.WindowsForm# Example Project
- component is used in [MSniper Project](https://github.com/msx752/MSniper)