Here are the examples of the csharp api class System.Windows.Forms.Control.ControlCollection.AddRange(System.Windows.Forms.Control[]) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
147 Examples
0
1. Example
View licenseprivate void InitializeComponent() { this._pnlHeader = new HeaderPanel(); /n ..... /n //View Source file for more details /n }
0
2. Example
View licenseprivate void InitializeComponent() { this._cbChoices = new System.Windows.Forms./n ..... /n //View Source file for more details /n }
0
3. Example
View licenseprivate void InitializeComponent() { _cmbChoices = new ComboBox(); _/n ..... /n //View Source file for more details /n }
0
4. Example
View licenseprivate void InitializeComponent() { this._MRUSizeLabel = new System.Windows.Forms.Label/n ..... /n //View Source file for more details /n }
0
5. Example
View licenseprivate void InitializeComponent() { _mouseGroup = new GroupBox(); _keyboard/n ..... /n //View Source file for more details /n }
0
6. Example
View licensepublic void AddControls(Control[] controls) { if (controls.Length == 1) { controls[0].AutoSize = true; controls[0].Dock = DockStyle.Fill; } _pagePanel.Controls.AddRange(controls); }
0
7. Example
View licenseprivate TabPage CreateEquipmentTab(int i) { TabPage tabPage = new TabPage( new[] /n ..... /n //View Source file for more details /n }
0
8. Example
View licensepublic void attachTo(Control c) { this.parent = c; parent.Paint += paintEvent; c.Controls.AddRange(markers.ToArray()); c.Controls.AddRange(creaters.ToArray()); }
0
9. Example
View licenseprivate void LogForm_Load(object sender, EventArgs e) { guiPanel.FlowDirection = FlowDirection.To/n ..... /n //View Source file for more details /n }
0
10. Example
View licenseprivate Panel GetPropertiesPanelInformation(string label, object value) { var lblLabel = new Label { Dock = DockStyle.Left, Text = label, Width = 100, Height = 20 }; Control rightControl = null; var stringValue = value as string; if (stringValue != null) { rightControl = new Label { Dock = DockStyle.Fill, Text = stringValue, }; } var uriValue = value as Uri; if (uriValue != null) { rightControl = new LinkLabel { Dock = DockStyle.Fill, Text = uriValue.AbsoluteUri, }; rightControl.Click += (sender, e) => { Process.Start(((LinkLabel) sender).Text); }; } if (rightControl == null) { rightControl = new Label { Dock = DockStyle.Fill, Text = "N/A", }; } var pnl = new Panel { Height = 20, Dock = DockStyle.Top }; pnl.Controls.AddRange(new [] {rightControl, lblLabel}); return pnl; }
0
11. Example
View licenseprivate Panel GetPropertiesPanelInformation(string label, object value) { var lblLabel = new Label { Dock = DockStyle.Left, Text = label, Width = 100, Height = 20 }; Control rightControl = null; var stringValue = value as string; if (stringValue != null) { rightControl = new Label { Dock = DockStyle.Fill, Text = stringValue, }; } var uriValue = value as Uri; if (uriValue != null) { rightControl = new LinkLabel { Dock = DockStyle.Fill, Text = uriValue.AbsoluteUri, }; rightControl.Click += (sender, e) => { Process.Start(((LinkLabel)sender).Text); }; } if (rightControl == null) { rightControl = new Label { Dock = DockStyle.Fill, Text = "N/A", }; } var pnl = new Panel { Height = 20, Dock = DockStyle.Top }; pnl.Controls.AddRange(new[] { rightControl, lblLabel }); return pnl; }
0
12. Example
View licensevoid InitInPlaceEditor() { editBox.KeyDown += editBox_KeyDown; editBox.LostFocus += this.LostFocus; editBox.Font = listView1.Font; listView1.Controls.AddRange(new Control[] { this.editBox }); editBox.Hide(); }
0
13. Example
View license[UsedImplicitly] public void Main() { TraficLightStates traficLightState = TraficLightStates.Yellow; using(var form = new Form()) using (var sm = new TraficLightStateMachine( new ExternalStateStorage<TraficLightStates>( () => traficLightState, newState => traficLightState = newState))) { var state = new Label {Location = new Point {X = 20, Y = 20}}; sm.TransitionCompleted += (sender, args) => state.Text = args.TargetStateID.ToString(); var start = new Button {Text = "Start", Location = new Point {X = 20, Y = 60}}; var stop = new Button {Text = "Stop", Location = new Point {X = 20, Y = 100}}; start.Click += (sender, args) => sm.Send(TraficLightEvents.Start); stop.Click += (sender, args) => sm.SendSynchronously(TraficLightEvents.Stop); form.Controls.AddRange(new Control[] {state, start, stop}); Application.Run(form); } }
0
14. Example
View licensepublic void AddQueuedTiles() { _flowLayout.Height += _appTileQueueHeight; _appTileQueueHeight = 0; _flowLayout.Controls.AddRange(_appTileQueue.ToArray()); _appTileQueue.Clear(); }
0
15. Example
View licenseprivate void InitializeComponent() { this.components = new System.ComponentModel/n ..... /n //View Source file for more details /n }
0
16. Example
View licenseprivate void InitializeComponent() { this.Vertical = new System.Windows.Forms.Pa/n ..... /n //View Source file for more details /n }
0
17. Example
View licenseprivate void InitializeComponent() { this.btnCancel = new System.Windows.Forms.B/n ..... /n //View Source file for more details /n }
0
18. Example
View licenseprivate void InitializeComponent() { this.panel2 = new System.Windows.Forms.Pane/n ..... /n //View Source file for more details /n }
0
19. Example
View licenseprivate void InitializeComponent() { this.groupBoxIdentity = new System.Windows.Forms.GroupBox(/n ..... /n //View Source file for more details /n }
0
20. Example
View licensevoid InitializeComponent() { this._errorMessageBox = new TextBox(); this.Su/n ..... /n //View Source file for more details /n }
0
21. Example
View licenseprivate void InitializeComponent() { this._lithiumControl = new Netron.Lithium.LithiumControl()/n ..... /n //View Source file for more details /n }
0
22. Example
View licenseprivate void InitializeComponent() { this.btnOk = new System.Windows.Forms.Button(); this.bt/n ..... /n //View Source file for more details /n }
0
23. Example
View licenseprivate void InitializeComponent() { this.mCombobox = new System.Windows.Forms.ComboBox(); t/n ..... /n //View Source file for more details /n }
0
24. Example
View licenseprivate void InitializeComponent() { this._appliedFiltersList = /n ..... /n //View Source file for more details /n }
0
25. Example
View licenseprivate void InitializeComponent() { this.startComboBox = new System.Windows.For/n ..... /n //View Source file for more details /n }
0
26. Example
View licenseprivate void InitializeComponent() { this.label1 = new System.Windows.Forms.Labe/n ..... /n //View Source file for more details /n }
0
27. Example
View licenseprivate void InitializeComponent() { this.label1 = new System.Windows.Forms.Labe/n ..... /n //View Source file for more details /n }
0
28. Example
View licenseprivate void InitializeComponent() { this.label1 = new System.Windows.Forms.Labe/n ..... /n //View Source file for more details /n }
0
29. Example
View licenseprivate void InitializeComponent() { this.button1 = new System.Windows.Forms.But/n ..... /n //View Source file for more details /n }
0
30. Example
View licenseprivate void InitializeComponent() { this.commentTextBox = new System.Windows.Fo/n ..... /n //View Source file for more details /n }
0
31. Example
View licenseprivate void InitializeComponent() { this.button2 = new System.Windows.Forms.But/n ..... /n //View Source file for more details /n }
0
32. Example
View licensepublic static DialogResult InputBox(string title, string promptText, ref string value) { /n ..... /n //View Source file for more details /n }
0
33. Example
View licensepublic void AddRange(IFrameControl[] frames) { this.parent.Controls.AddRange(frames.OfType<Control>().ToArray<Control>()); }
0
34. Example
View licenseprivate void InitializeComponent() { this.buttonOK = new System.Windows.Forms.Button(); this/n ..... /n //View Source file for more details /n }
0
35. Example
View licenseprivate void InitializeComponent() { this._lbMainLog = new System.Windows.Forms.ListBox(); this.panel1 = new System.Windows.Forms.Panel(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // _lbMainLog // this._lbMainLog.HorizontalScrollbar = true; this._lbMainLog.Location = new System.Drawing.Point(3, 4); this._lbMainLog.Name = "_lbMainLog"; this._lbMainLog.Size = new System.Drawing.Size(451, 355); this._lbMainLog.TabIndex = 0; this._lbMainLog.SelectedIndexChanged += new System.EventHandler(this._lbMainLog_SelectedIndexChanged); // // panel1 // this.panel1.BackColor = System.Drawing.Color.LightSteelBlue; this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] { this._lbMainLog}); this.panel1.Location = new System.Drawing.Point(6, 8); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(462, 365); this.panel1.TabIndex = 1; // // PageMainLog // this.Controls.AddRange(new System.Windows.Forms.Control[] { this.panel1}); this.Location = new System.Drawing.Point(0, 0); this.Name = "PageMainLog"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
0
36. Example
View licenseprivate void InitializeComponent() { this._titleLabel = new System.Windows.Forms.Label()/n ..... /n //View Source file for more details /n }
0
37. Example
View licenseprivate void InitializeComponent() { this._privateKeyBox = new Label(); this/n ..... /n //View Source file for more details /n }
0
38. Example
View licenseprivate void InitializeComponent() { this._button1 = new System.Windows.Forms.Button(); /n ..... /n //View Source file for more details /n }
0
39. Example
View licenseprivate void InitializeComponent() { this._lKeyFile = new System.Windows.Forms.Label(); /n ..... /n //View Source file for more details /n }
0
40. Example
View licenseprivate void InitializeComponent() { this._socksGroup = new System.Windows.Forms.GroupBo/n ..... /n //View Source file for more details /n }
0
41. Example
View licenseprivate void InitializeComponent() { this._asciiFontList = new System.Windows.Forms.List/n ..... /n //View Source file for more details /n }
0
42. Example
View licenseprivate void InitializeComponent() { this._lbMainLog = new System.Windows.Forms.ListBox(); this.panel1 = new System.Windows.Forms.Panel(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // _lbMainLog // this._lbMainLog.HorizontalScrollbar = true; this._lbMainLog.Location = new System.Drawing.Point(3, 4); this._lbMainLog.Name = "_lbMainLog"; this._lbMainLog.Size = new System.Drawing.Size(451, 355); this._lbMainLog.TabIndex = 0; this._lbMainLog.SelectedIndexChanged += new System.EventHandler(this._lbMainLog_SelectedIndexChanged); // // panel1 // this.panel1.BackColor = System.Drawing.Color.LightSteelBlue; this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] { this._lbMainLog}); this.panel1.Location = new System.Drawing.Point(6, 8); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(462, 365); this.panel1.TabIndex = 1; // // PageMainLog // this.Controls.AddRange(new System.Windows.Forms.Control[] { this.panel1}); this.Location = new System.Drawing.Point(0, 0); this.Name = "PageMainLog"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
0
43. Example
View licenseprivate void InitializeComponent() { this.ErrorBox = new System.Windows.Forms.TextBox(); thi/n ..... /n //View Source file for more details /n }
0
44. Example
View licenseprivate void InitializeComponent() { this.TextBox = new System.Windows.Forms.TextBox(); this/n ..... /n //View Source file for more details /n }
0
45. Example
View licenseprivate void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.la/n ..... /n //View Source file for more details /n }
0
46. Example
View licenseprivate void InitializeComponent() { this.plotArea = new System.Windows.Forms.Panel(); this./n ..... /n //View Source file for more details /n }
0
47. Example
View licenseprivate void InitializeComponent() { var resources = new System./n ..... /n //View Source file for more details /n }
0
48. Example
View licenseprivate void InitializeComponent() { var resources = new System./n ..... /n //View Source file for more details /n }
0
49. Example
View licenseprivate void InitializeComponent() { var resources = new System.Resources.Resour/n ..... /n //View Source file for more details /n }
0
50. Example
View licensepublic static DialogResult Show(string title, string promptText, ref string value) { /n ..... /n //View Source file for more details /n }