using System;
using System.Drawing;
using System.Windows.Forms;
class ButtonStyles: Form
{
publicstaticvoid 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);
}
}
}