Button FlatStyle Styles : Button : GUI Windows Form C# Source Code


Custom Search

C# Source Code » GUI Windows Form » Button »

 

Button FlatStyle Styles








    
 


using System;
using System.Drawing;
using System.Windows.Forms;
   
class ButtonStyles: Form
{
     public static void Main()
     {
          Application.Run(new ButtonStyles());
     }
     public ButtonStyles()
     {
          int y = 0;
   
          foreach (FlatStyle fs in Enum.GetValues(typeof(FlatStyle)))
          {
               Button btn    = new Button();
               btn.Parent    = this;
               btn.FlatStyle = fs;
               btn.Text      = fs.ToString();
               btn.Location  = new Point(50, y += 50);
          }
     }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo GUI Windows Form
» Button