Button.FlatStyle : Button « System.Windows.Forms « C# / C Sharp by API






Button.FlatStyle

  

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);
          }
     }
}

   
    
  








Related examples in the same category

1.new Button()
2.Button.Anchor
3.Button.Click
4.Button.DialogResult
5.Button.Dock
6.Button.Font
7.Button.Image
8.Button.Location
9.Button.MouseDown
10.Button.MouseEnter
11.Button.Parent
12.Button.PerformClick()
13.Button.Size
14.Button.Text
15.Button.TextAlign
16.Button.Top