using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Linq;
using
System.Text;
using
System.Threading.Tasks;
using
System.Windows.Forms;
namespace
WindowsFormsApp50 {
public
partial
class
Form1 : Form {
public
Form1()
{
InitializeComponent();
}
private
void
Form1_Load(
object
sender, EventArgs e)
{
FlowLayoutPanel f =
new
FlowLayoutPanel();
f.Location =
new
Point(380, 124);
f.Size =
new
Size(216, 57);
f.Name =
"Mycontainer"
;
f.Font =
new
Font(
"Calibri"
, 12);
f.FlowDirection = FlowDirection.RightToLeft;
f.BorderStyle = BorderStyle.Fixed3D;
f.ForeColor = Color.BlueViolet;
f.Visible =
true
;
this
.Controls.Add(f);
RadioButton r1 =
new
RadioButton();
r1.Location =
new
Point(3, 3);
r1.Size =
new
Size(95, 20);
r1.Text =
"R1"
;
f.Controls.Add(r1);
RadioButton r2 =
new
RadioButton();
r2.Location =
new
Point(94, 3);
r2.Size =
new
Size(95, 20);
r2.Text =
"R2"
;
f.Controls.Add(r2);
RadioButton r3 =
new
RadioButton();
r3.Location =
new
Point(3, 26);
r3.Size =
new
Size(95, 20);
r3.Text =
"R3"
;
f.Controls.Add(r3);
}
}
}