Skip to content

msx752/WindowsForms.Console

Repository files navigation

nuget NuGet Build status

WindowsForms.Console

Component of WindowsForm

Usage

  • import nuget package to the project
        Install-Package WindowsForms.Console
        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)

FConsole

Supported Platforms

moved to security.md

Dependencies

  • System.Windows.Form
  • System

FrameworkReferences for the .NetCore and upper

  • Microsoft.WindowsDesktop.App.WindowsForm

Example Project