本文整理汇总了C#中System.Windows.Forms.GroupBox类的典型用法代码示例。如果您正苦于以下问题:C# GroupBox类的具体用法?C# GroupBox怎么用?C# GroupBox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GroupBox类属于System.Windows.Forms命名空间,在下文中一共展示了GroupBox类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddDeleteAction
public static void AddDeleteAction(Shape shape, ref ListBox listBoxShapes, ref GroupBox groupBoxShape)
{
if (IsActionTrackingDisabled)
return;
UpdateUndoRedoValues();
actions.Add(new UndoRedo.WorkingActionDelete(shape, Editor.Shapes, ref listBoxShapes, ref groupBoxShape));
}
示例2: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutForm));
this.label1 = new System.Windows.Forms.Label();
this.listBox1 = new System.Windows.Forms.ListBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(64, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(248, 32);
this.label1.TabIndex = 1;
this.label1.Text = "HyperLoad 2.0";
//
// listBox1
//
this.listBox1.Items.AddRange(new object[] {
"This program is completely free to use!",
"",
"Hyperload is an open-source program that can be used to",
"program *.HEX files to your microcontroller.",
"",
"The Hyperload Protocol & related information can be found at:",
"www.sociaLLedge.com/sjsu"});
this.listBox1.Location = new System.Drawing.Point(14, 84);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(304, 108);
this.listBox1.TabIndex = 5;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.listBox1);
this.groupBox1.Location = new System.Drawing.Point(8, 8);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(320, 210);
this.groupBox1.TabIndex = 8;
this.groupBox1.TabStop = false;
//
// AboutForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(338, 225);
this.Controls.Add(this.groupBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "AboutForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "About";
this.Deactivate += new System.EventHandler(this.AboutForm_Deactivate);
this.groupBox1.ResumeLayout(false);
this.ResumeLayout(false);
}
示例3: AddPageLayout
private void AddPageLayout ()
{
groupPageLayout = new GroupBox();
groupPageLayout.Location = new Point (16,110);
groupPageLayout.Size = new System.Drawing.Size(360, 48);
groupPageLayout.Text = "Page Layout";
radioStandardLayout = new RadioButton();
radioStandardLayout.Text = "Standard";
radioStandardLayout.Location = new Point(24,15);
radioStandardLayout.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
radioStandardLayout.CheckedChanged += SetSuccessor;
groupPageLayout.Controls.Add(radioStandardLayout);
radioLandscape = new RadioButton();
radioLandscape.Text = "Landscape";
radioLandscape.Location = new Point (150,15);
radioLandscape.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
radioLandscape.CheckedChanged += SetSuccessor;
groupPageLayout.Controls.Add(radioLandscape);
this.groupBox1.Controls.Add(groupPageLayout);
}
示例4: InitView
public void InitView(GroupBox gBox)
{
Location = new System.Drawing.Point(6, 18);
Size = new System.Drawing.Size(296, 156);
TabIndex = 0;
gBox.Controls.Add(this);
}
示例5: InitializeComponent
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Labelled));
this.groupBox1 = new GroupBox();
this.textBox1 = new TextBox();
this.groupBox1.SuspendLayout();
base.SuspendLayout();
this.groupBox1.Controls.Add(this.textBox1);
this.groupBox1.Location = new Point(13, 10);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new Size(0x128, 0x189);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "标签说明:";
this.textBox1.Location = new Point(7, 0x15);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new Size(0x11b, 0x162);
this.textBox1.TabIndex = 0;
this.textBox1.Text = resources.GetString("textBox1.Text");
base.AutoScaleDimensions = new SizeF(6f, 12f);
base.AutoScaleMode = AutoScaleMode.Font;
base.ClientSize = new Size(0x141, 0x199);
base.Controls.Add(this.groupBox1);
base.FormBorderStyle = FormBorderStyle.FixedDialog;
base.MaximizeBox = false;
base.MinimizeBox = false;
base.Name = "Labelled";
base.StartPosition = FormStartPosition.CenterScreen;
this.Text = "Labelled";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
base.ResumeLayout(false);
}
示例6: InitializeMyGroupBox
// Groupbox
private void InitializeMyGroupBox()
{
// Create and initialize a GroupBox and a Button control.
GroupBox groupBox11 = new GroupBox();
Button button11 = new Button();
button11.Location = new Point(1000, 420);
// Set the FlatStyle of the GroupBox.
groupBox11.FlatStyle = FlatStyle.Flat;
// Add the Button to the GroupBox.
groupBox11.Controls.Add(button11);
// Add the GroupBox to the Form.
Controls.Add(groupBox11);
// Create and initialize a GroupBox and a Button control.
GroupBox groupBox21 = new GroupBox();
Button button21 = new Button();
button21.Location = new Point(1000, 320);
groupBox21.Location = new Point(1000, 320);
// Set the FlatStyle of the GroupBox.
groupBox21.FlatStyle = FlatStyle.Standard;
// Add the Button to the GroupBox.
groupBox21.Controls.Add(button21);
// Add the GroupBox to the Form.
Controls.Add(groupBox21);
}
示例7: InitializeComponent
private void InitializeComponent()
{
this.groupBox1 = new GroupBox();
this.propertyGrid = new PropertyGrid();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
this.groupBox1.Controls.Add((Control) this.propertyGrid);
this.groupBox1.Location = new Point(16, 16);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new Size(368, 328);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Settings";
this.propertyGrid.Dock = DockStyle.Fill;
this.propertyGrid.HelpVisible = false;
this.propertyGrid.Location = new Point(3, 16);
this.propertyGrid.Name = "propertyGrid";
this.propertyGrid.Size = new Size(362, 309);
this.propertyGrid.TabIndex = 0;
this.propertyGrid.ToolbarVisible = false;
this.propertyGrid.PropertyValueChanged += new PropertyValueChangedEventHandler(this.propertyGrid_PropertyValueChanged);
this.AutoScaleDimensions = new SizeF(6f, 13f);
this.Controls.Add((Control) this.groupBox1);
this.Name = "EditorOptionsPanel";
this.groupBox1.ResumeLayout(false);
this.ResumeLayout(false);
}
示例8: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InformacjaOProdukcie));
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label1 = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.label2 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label1);
resources.ApplyResources(this.groupBox1, "groupBox1");
this.groupBox1.Name = "groupBox1";
this.groupBox1.TabStop = false;
//
// label1
//
resources.ApplyResources(this.label1, "label1");
this.label1.Name = "label1";
this.label1.Click += new System.EventHandler(this.label1_Click);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.label2);
resources.ApplyResources(this.groupBox2, "groupBox2");
this.groupBox2.Name = "groupBox2";
this.groupBox2.TabStop = false;
//
// label2
//
resources.ApplyResources(this.label2, "label2");
this.label2.Name = "label2";
//
// button1
//
resources.ApplyResources(this.button1, "button1");
this.button1.Name = "button1";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// InformacjaOProdukcie
//
resources.ApplyResources(this, "$this");
this.Controls.Add(this.button1);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "InformacjaOProdukcie";
this.ShowInTaskbar = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
this.Load += new System.EventHandler(this.InformacjaOProdukcie_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.ResumeLayout(false);
}
示例9: AbstractCreate
protected override void AbstractCreate(object value, ref int tabIndex)
{
int left = Margin;
int top = Margin;
// ボーダライン(groupPanel)の生成
_border = (GroupBox) Create(Panel, new GroupBox(), left, top, -1);
//border.setBorder(BorderFactory.createTitledBorder(getHelp()));
_border.Text = Help;
_border.AutoSize = false;
//グループに含まれるコントロールを描画する
var x = left + 8;
var y = top + 12;
ListVal.CreateCtrl(_border, x, y, ref tabIndex);
var dimension = ListVal.Size;
// borderのサイズ指定
_border.Size = new Size(OptionDlg.Width() - 15, dimension.Height +18); // 横はダイアログ幅、縦は、含まれるコントロールで決まる
// オフセット移動
left += _border.Width;
top += _border.Height;
//値の設定
AbstractWrite(value);
// パネルのサイズ設定
//Panel.setSize(left + width +Margin, top + height +Margin * 2);
Panel.Size = new Size(left + Margin, top + Margin);
}
示例10: createCustomGB
private GroupBox createCustomGB(String name)
{
GroupBox gb = new GroupBox();
gb.AutoSize = true;
gb.AutoSizeMode = AutoSizeMode.GrowAndShrink;
gb.Anchor = AnchorStyles.Left | AnchorStyles.Right;
FlowLayoutPanel p = new FlowLayoutPanel();
p.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
p.AutoSize = true;
p.AutoSizeMode = AutoSizeMode.GrowAndShrink;
p.WrapContents = true;
p.Location = new System.Drawing.Point(6, 19);
gb.Controls.Add(p);
gb.Text = String.Format("Group {0}", name);
for (int i = 0; i < 4; i++)
{
Button b = new Button();
b.Text = String.Format("Button {0}", i);
p.Controls.Add(b);
}
gb.MinimumSize = new Size(
flowLayoutPanel1.Size.Width - flowLayoutPanel1.Margin.Right - 10,
0
);
return gb;
}
示例11: InitializeComponent
private void InitializeComponent()
{
this.grpLocalizacao = new System.Windows.Forms.GroupBox();
this.trVwLocalizacao = new System.Windows.Forms.TreeView();
this.grpLocalizacao.SuspendLayout();
this.SuspendLayout();
//
// grpLocalizacao
//
this.grpLocalizacao.Controls.Add(this.trVwLocalizacao);
this.grpLocalizacao.Dock = System.Windows.Forms.DockStyle.Fill;
this.grpLocalizacao.Location = new System.Drawing.Point(0, 0);
this.grpLocalizacao.Name = "grpLocalizacao";
this.grpLocalizacao.Size = new System.Drawing.Size(448, 224);
this.grpLocalizacao.TabIndex = 0;
this.grpLocalizacao.TabStop = false;
//
// trVwLocalizacao
//
this.trVwLocalizacao.Dock = System.Windows.Forms.DockStyle.Fill;
this.trVwLocalizacao.HideSelection = false;
this.trVwLocalizacao.Location = new System.Drawing.Point(3, 16);
this.trVwLocalizacao.Name = "trVwLocalizacao";
this.trVwLocalizacao.Size = new System.Drawing.Size(442, 205);
this.trVwLocalizacao.TabIndex = 0;
//
// ControloLocalizacao
//
this.Controls.Add(this.grpLocalizacao);
this.Name = "ControloLocalizacao";
this.Size = new System.Drawing.Size(448, 224);
this.grpLocalizacao.ResumeLayout(false);
this.ResumeLayout(false);
}
示例12: InitializeComponent
private void InitializeComponent()
{
this.grbMain = new GroupBox();
this.btnBack = new Button();
this.grbMain.SuspendLayout();
base.SuspendLayout();
this.grbMain.Controls.Add(this.btnBack);
this.grbMain.Location = new Point(0, 0);
this.grbMain.Name = "grbMain";
this.grbMain.Size = new Size(470, 0x29);
this.grbMain.TabIndex = 0x80;
this.grbMain.TabStop = false;
this.grbMain.Text = "Go back to the Configuration section";
this.btnBack.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
this.btnBack.Location = new Point(0x175, 15);
this.btnBack.Name = "btnBack";
this.btnBack.Size = new Size(0x5b, 20);
this.btnBack.TabIndex = 0x7b;
this.btnBack.Text = "Back";
this.btnBack.UseVisualStyleBackColor = true;
this.btnBack.Click += new EventHandler(this.btnBack_Click);
base.AutoScaleDimensions = new SizeF(6f, 13f);
base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
base.Controls.Add(this.grbMain);
base.Name = "BackButton";
base.Size = new Size(470, 0x29);
base.Tag = "";
this.grbMain.ResumeLayout(false);
base.ResumeLayout(false);
}
示例13: FuzzyMemFunc
/******************************************************************************/
public FuzzyMemFunc(Control parent, string caption, int index, int top, int left, MemFuncEventHandler handler)
{
_container = (GroupBox)parent;
_index = index;
_handler = handler;
_text_box_list = new List<TextBox>();
Font f_reg = new Font("Microsoft Sans Serif", 7);
Label lbl = new Label();
lbl.Font = f_reg;
lbl.Location = new Point(LABEL_LEFT, top + (TB_HEIGHT * index) + 2);
lbl.AutoSize = false;
lbl.RightToLeft = RightToLeft.Yes;
lbl.Size = new Size(LABEL_WIDTH, LABEL_HEIGHT);
lbl.Text = caption;
parent.Controls.Add(lbl);
// Build 4 textboxes to hold trapezoidal func elements
for(int i = 0; i < 4; i++)
{
TextBox tb = new TextBox();
tb.Font = f_reg;
tb.Size = new Size(TB_WIDTH, TB_HEIGHT);
tb.Location = new Point(left + (TB_WIDTH * i), top + (TB_HEIGHT * index));
tb.Text = string.Empty;
parent.Controls.Add(tb);
_text_box_list.Add(tb);
}
}
示例14: AssignmentDay
public AssignmentDay(GroupBox par, int num, int x)
{
gbX = x;
myNumber = num;
parent = par;
labels = new List<Label>();
}
示例15: SetGroupBoxProperties
private void SetGroupBoxProperties(GroupBox gb)
{
gb.Left = groupBoxPropertiesRoot.Left;
gb.Top = groupBoxPropertiesRoot.Top;
gb.Size = groupBoxPropertiesRoot.Size;
gb.Anchor = groupBoxPropertiesRoot.Anchor;
}