本文整理汇总了C#中System.Windows.Forms.GroupBox类的典型用法代码示例。如果您正苦于以下问题:C# GroupBox类的具体用法?C# GroupBox怎么用?C# GroupBox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GroupBox类属于System.Windows.Forms命名空间,在下文中一共展示了GroupBox类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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));
}
开发者ID:RyamBaCo,项目名称:GameEngineeringLiveEditing,代码行数:7,代码来源:ModificationObserver.cs
示例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);
}
开发者ID:kammce,项目名称:SJSU-DEV-Linux,代码行数:64,代码来源:AboutForm.cs
示例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);
}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:26,代码来源:BaseSettingsPanel.cs
示例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);
}
开发者ID:burstas,项目名称:rmps,代码行数:7,代码来源:Note.cs
示例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);
}
开发者ID:vanloc0301,项目名称:mychongchong,代码行数:34,代码来源:Labelled.cs
示例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);
}
开发者ID:777ondro,项目名称:sw-en,代码行数:32,代码来源:Form7.cs
示例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);
}
开发者ID:smther,项目名称:FreeOQ,代码行数:27,代码来源:EditorOptionsPanel.cs
示例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);
}
开发者ID:cramer7575,项目名称:BudzikStary,代码行数:64,代码来源:InformacjaOProdukcie.cs
示例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);
}
开发者ID:jsakamoto,项目名称:bjd5,代码行数:31,代码来源:CtrlGroup.cs
示例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;
}
开发者ID:mrcaron,项目名称:Greedy_Autosize,代码行数:31,代码来源:Form1.cs
示例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);
}
开发者ID:aureliopires,项目名称:gisa,代码行数:35,代码来源:ControloLocalizacao.cs
示例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);
}
开发者ID:x893,项目名称:WDS,代码行数:30,代码来源:BackButton.cs
示例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);
}
}
开发者ID:robmilne,项目名称:viTestApp,代码行数:32,代码来源:FuzzyMemFunc.cs
示例14: AssignmentDay
public AssignmentDay(GroupBox par, int num, int x)
{
gbX = x;
myNumber = num;
parent = par;
labels = new List<Label>();
}
开发者ID:AaronMPeters,项目名称:Purdue-Virtual-Mortar-Board,代码行数:7,代码来源:AssignmentDay.cs
示例15: SetGroupBoxProperties
private void SetGroupBoxProperties(GroupBox gb)
{
gb.Left = groupBoxPropertiesRoot.Left;
gb.Top = groupBoxPropertiesRoot.Top;
gb.Size = groupBoxPropertiesRoot.Size;
gb.Anchor = groupBoxPropertiesRoot.Anchor;
}
开发者ID:YangEunYong,项目名称:subtitleedit,代码行数:7,代码来源:ExportTextST.cs
示例16: Incijaliziraj_Company
public void Incijaliziraj_Company(String text1, String text2, String text3,String text4)
{
gb = new GroupBox();
gb.Size = new Size(500, 40);
this.Controls.Add(gb);
gb.Location = new Point(0, 0);
text1Lbl = new Label();
gb.Controls.Add(text1Lbl);
text1Lbl.Text = text1;
text1Lbl.Font = new Font("Verdana", 10, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
text1Lbl.Size = new Size(150, 20);
text1Lbl.Location = new Point(5, 15);
text2Lbl = new Label();
gb.Controls.Add(text2Lbl);
text2Lbl.Text = text2;
text2Lbl.Size = new Size(100, 15);
text2Lbl.Location = new Point(this.text1Lbl.Location.X + 150,15);
text3Lbl = new Label();
gb.Controls.Add(text3Lbl);
text3Lbl.Text = text3;
text3Lbl.Size = new Size(100, 15);
text3Lbl.Location = new Point(this.text1Lbl.Location.X + 250, 15);
text4Lbl = new Label();
gb.Controls.Add(text4Lbl);
text4Lbl.Text = text4;
text4Lbl.Size = new Size(50, 15);
text4Lbl.Location = new Point(this.text1Lbl.Location.X + 440, 15);
}
开发者ID:markomitr,项目名称:.Net-WinForms-MSAccessApp-2008,代码行数:34,代码来源:searchControla.cs
示例17: Configuration
public Configuration(Map map, GroupBox fieldGroupbox, CheckBox checkAllFields, int featureLayer = 0, int polygonLayer = 0, List<string> ignoreList = null, bool selectMutipleFied = true)
{
this._map = map;
this._fieldsGroupbox = fieldGroupbox;
this._checkAllFields = checkAllFields;
this._featureLayerIndex = featureLayer;
this._polygonLayerIndex = 0;
this._selectMutipleFied = selectMutipleFied;
if (ignoreList != null)
this.reserveFields = ignoreList;
else
this.reserveFields = new List<string>();
SetLayers();
this._checkAllFields.Visible = selectMutipleFied;
this._checkAllFields.CheckStateChanged += CheckAllFields_CheckStateChanged;
loadCheckListboxCollection();
if (!this._selectMutipleFied)
{
bindCheckedEvent();
}
}
开发者ID:shoaib-ijaz,项目名称:geosoft,代码行数:27,代码来源:Configuration.cs
示例18: DropHook
private static void DropHook(GroupBox sender)
{
sender.AllowDrop=true;
sender.DragDrop+=new DragEventHandler(Drag_Drop);
sender.DragEnter+=new DragEventHandler(Drag_Enter);
}
开发者ID:Hza100,项目名称:subindex-mod,代码行数:7,代码来源:DragDropAgent.cs
示例19: GetTextures
public void GetTextures()
{
if (avatar.Textures == null) return;
lblName.Text = this.avatar.Name;
for (int j = 0; j < avatar.Textures.FaceTextures.Length; j++)
{
Primitive.TextureEntryFace face = avatar.Textures.FaceTextures[j];
if (face != null)
{
if (face.TextureID != AppearanceManager.DEFAULT_AVATAR_TEXTURE)
{
SLImageHandler img = new SLImageHandler(instance, face.TextureID, ((AvatarTextureIndex)j).ToString());
GroupBox gbx = new GroupBox();
gbx.Dock = DockStyle.Top;
gbx.Text = img.Text;
gbx.Height = 550;
img.Dock = DockStyle.Fill;
gbx.Controls.Add(img);
pnlImages.Controls.Add(gbx);
}
}
}
}
开发者ID:Nuriat,项目名称:radegast,代码行数:28,代码来源:OutfitTextures.cs
示例20: InitializeRadioButtons
// Radiobuttons
public void InitializeRadioButtons()
{
this.groupBox11 = new System.Windows.Forms.GroupBox();
this.radioButton21 = new System.Windows.Forms.RadioButton();
this.radioButton11 = new System.Windows.Forms.RadioButton();
// adding members into the groupbox
this.groupBox11.Controls.Add(this.radioButton11);
this.groupBox11.Controls.Add(this.radioButton21);
this.groupBox11.Location = new System.Drawing.Point(1000, 200);
this.groupBox11.Size = new System.Drawing.Size(200, 100);
this.groupBox11.Text = "Radio Buttons";
this.radioButton21.Location = new System.Drawing.Point(1000, 250);
this.radioButton21.Size = new System.Drawing.Size(67, 17);
this.radioButton21.Text = "Choice 2";
this.radioButton11.Location = new System.Drawing.Point(1000, 350);
this.radioButton11.Name = "radioButton1";
this.radioButton11.Size = new System.Drawing.Size(67, 17);
this.radioButton11.Text = "Choice 1";
this.ClientSize = new System.Drawing.Size(1000, 266);
this.Controls.Add(this.groupBox11);
}
开发者ID:777ondro,项目名称:sw-en,代码行数:26,代码来源:Form7.cs
注:本文中的System.Windows.Forms.GroupBox类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论