System.Windows.Forms.Control.ControlCollection.AddRange(System.Windows.Forms.Control[])

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 7

1. Example

View license
private void InitializeComponent()
        {
            this._pnlHeader = new HeaderPanel();
      /n ..... /n //View Source file for more details /n }

2. Example

View license
private void InitializeComponent()
        {
            this._cbChoices = new System.Windows.Forms./n ..... /n //View Source file for more details /n }

3. Example

View license
private void InitializeComponent()
        {
            _cmbChoices = new ComboBox();
            _/n ..... /n //View Source file for more details /n }

4. Example

Project: poderosa
Source File: GenericOptionPanel.cs
View license
private void InitializeComponent() {
            this._MRUSizeLabel = new System.Windows.Forms.Label/n ..... /n //View Source file for more details /n }

5. Example

Project: poderosa
Source File: PeripheralOptionPanel.cs
View license
private void InitializeComponent() {
            _mouseGroup = new GroupBox();
            _keyboard/n ..... /n //View Source file for more details /n }

6. Example

Project: BloomDesktop
Source File: WizardPage.cs
View license
public void AddControls(Control[] controls)
		{
			if (controls.Length == 1)
			{
				controls[0].AutoSize = true;
				controls[0].Dock = DockStyle.Fill;
			}
			_pagePanel.Controls.AddRange(controls);
		}

7. Example

Project: CharacterEditor
Source File: Editor.Equipment.cs
View license
private TabPage CreateEquipmentTab(int i)
		{
			TabPage tabPage =
				new TabPage(
					new[]
					/n ..... /n //View Source file for more details /n }

8. Example

Project: moddingSuite
Source File: Outline.cs
View license
public void attachTo(Control c)
        {
            this.parent = c;
            parent.Paint += paintEvent;
            c.Controls.AddRange(markers.ToArray());
            c.Controls.AddRange(creaters.ToArray());
        }

9. Example

Project: Patchwork
Source File: LogForm.cs
View license
private void LogForm_Load(object sender, EventArgs e) {
			guiPanel.FlowDirection = FlowDirection.To/n ..... /n //View Source file for more details /n }

10. Example

Project: XrmToolBox
Source File: StoreForm - Copier.cs
View license
private 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;
        }

11. Example

Project: XrmToolBox
Source File: StoreForm.cs
View license
private 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;
        }

12. Example

View license
void InitInPlaceEditor()
        {
            editBox.KeyDown += editBox_KeyDown;
            editBox.LostFocus += this.LostFocus;
            editBox.Font = listView1.Font;
            listView1.Controls.AddRange(new Control[] { this.editBox });
            editBox.Hide();
        }

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);
            }
        }

14. Example

Project: 0install-win
Source File: AppTileList.cs
View license
public void AddQueuedTiles()
        {
            _flowLayout.Height += _appTileQueueHeight;
            _appTileQueueHeight = 0;

            _flowLayout.Controls.AddRange(_appTileQueue.ToArray());
            _appTileQueue.Clear();
        }

15. Example

Project: MapleShark
Source File: AutoListForm.cs
View license
private void InitializeComponent()
        {
            this.components = new System.ComponentModel/n ..... /n //View Source file for more details /n }

16. Example

Project: MapleShark
Source File: SplitViewControl.cs
View license
private void InitializeComponent()
        {
            this.Vertical = new System.Windows.Forms.Pa/n ..... /n //View Source file for more details /n }

17. Example

Project: MapleShark
Source File: GotoLine.cs
View license
private void InitializeComponent()
        {
            this.btnCancel = new System.Windows.Forms.B/n ..... /n //View Source file for more details /n }

18. Example

View license
private void InitializeComponent()
        {
            this.panel2 = new System.Windows.Forms.Pane/n ..... /n //View Source file for more details /n }

19. Example

Project: sharpgl
Source File: PointsBuilder.cs
View license
private void InitializeComponent()
		{
			this.groupBoxIdentity = new System.Windows.Forms.GroupBox(/n ..... /n //View Source file for more details /n }

20. Example

View license
void InitializeComponent() {
            this._errorMessageBox = new TextBox();

            this.Su/n ..... /n //View Source file for more details /n }

21. Example

Project: OpenNlp
Source File: MainForm.cs
View license
private void InitializeComponent()
		{
			this._lithiumControl = new Netron.Lithium.LithiumControl()/n ..... /n //View Source file for more details /n }

22. Example

Project: VncSharp
Source File: PasswordDialog.cs
View license
private void InitializeComponent()
		{
			this.btnOk = new System.Windows.Forms.Button();
			this.bt/n ..... /n //View Source file for more details /n }

23. Example

Project: lua-tilde
Source File: OutputPanel.cs
View license
private void InitializeComponent()
		{
			this.mCombobox = new System.Windows.Forms.ComboBox();
			t/n ..... /n //View Source file for more details /n }

24. Example

View license
private void InitializeComponent()
        {
            this._appliedFiltersList =
                /n ..... /n //View Source file for more details /n }

25. Example

Project: clrprofiler
Source File: CommentRangeForm.cs
View license
private void InitializeComponent()
        {
            this.startComboBox = new System.Windows.For/n ..... /n //View Source file for more details /n }

26. Example

Project: clrprofiler
Source File: KillProcessForm.cs
View license
private void InitializeComponent()
        {
            this.label1 = new System.Windows.Forms.Labe/n ..... /n //View Source file for more details /n }

27. Example

Project: clrprofiler
Source File: ProfileServiceForm.cs
View license
private void InitializeComponent()
        {
            this.label1 = new System.Windows.Forms.Labe/n ..... /n //View Source file for more details /n }

28. Example

Project: clrprofiler
Source File: SaveFileForm.cs
View license
private void InitializeComponent()
        {
            this.label1 = new System.Windows.Forms.Labe/n ..... /n //View Source file for more details /n }

29. Example

Project: clrprofiler
Source File: SelectColumns.cs
View license
private void InitializeComponent()
        {
            this.button1 = new System.Windows.Forms.But/n ..... /n //View Source file for more details /n }

30. Example

Project: clrprofiler
Source File: ViewCommentsForm.cs
View license
private void InitializeComponent()
        {
            this.commentTextBox = new System.Windows.Fo/n ..... /n //View Source file for more details /n }

31. Example

Project: clrprofiler
Source File: ViewFilter.cs
View license
private void InitializeComponent()
        {
            this.button2 = new System.Windows.Forms.But/n ..... /n //View Source file for more details /n }

32. Example

Project: mRemoteNG
Source File: input.cs
View license
public static DialogResult InputBox(string title, string promptText, ref string value)
        {
   /n ..... /n //View Source file for more details /n }

33. Example

View license
public void AddRange(IFrameControl[] frames)
		{
			this.parent.Controls.AddRange(frames.OfType<Control>().ToArray<Control>());
		}

34. Example

Project: LaserGRBL
Source File: InputBox.cs
View license
private void InitializeComponent()
		{
			this.buttonOK = new System.Windows.Forms.Button();
			this/n ..... /n //View Source file for more details /n }

35. Example

Project: MailSystem.NET
Source File: PageMainLog.cs
View license
private 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);

		}

36. Example

Project: poderosa
Source File: ModuleProperty.cs
View license
private void InitializeComponent() {
            this._titleLabel = new System.Windows.Forms.Label()/n ..... /n //View Source file for more details /n }

37. Example

Project: poderosa
Source File: SSHShortcutLoginDialog.cs
View license
private void InitializeComponent() {
            this._privateKeyBox = new Label();
            this/n ..... /n //View Source file for more details /n }

38. Example

Project: poderosa
Source File: ThreeButtonMessageBox.cs
View license
private void InitializeComponent() {
            this._button1 = new System.Windows.Forms.Button();
/n ..... /n //View Source file for more details /n }

39. Example

Project: poderosa
Source File: ChangePassphrase.cs
View license
private void InitializeComponent() {
            this._lKeyFile = new System.Windows.Forms.Label();
/n ..... /n //View Source file for more details /n }

40. Example

Project: poderosa
Source File: ConnectionOptionPanel.cs
View license
private void InitializeComponent() {
            this._socksGroup = new System.Windows.Forms.GroupBo/n ..... /n //View Source file for more details /n }

41. Example

Project: poderosa
Source File: FontDialog.cs
View license
private void InitializeComponent() {
            this._asciiFontList = new System.Windows.Forms.List/n ..... /n //View Source file for more details /n }

42. Example

Project: MailSystem.NET
Source File: PageMainLog.cs
View license
private 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);

		}

43. Example

Project: SWYH
Source File: ExceptionForm.cs
View license
private void InitializeComponent()
		{
			this.ErrorBox = new System.Windows.Forms.TextBox();
			thi/n ..... /n //View Source file for more details /n }

44. Example

Project: SWYH
Source File: InstanceTracker2.cs
View license
private void InitializeComponent()
		{
			this.TextBox = new System.Windows.Forms.TextBox();
			this/n ..... /n //View Source file for more details /n }

45. Example

Project: UfcppSample
Source File: SettingForm.cs
View license
private void InitializeComponent()
		{
			this.label1 = new System.Windows.Forms.Label();
			this.la/n ..... /n //View Source file for more details /n }

46. Example

Project: UfcppSample
Source File: Graph.cs
View license
private void InitializeComponent()
		{
			this.plotArea = new System.Windows.Forms.Panel();
			this./n ..... /n //View Source file for more details /n }

47. Example

Project: MapleShark
Source File: InfoTipForm.cs
View license
private void InitializeComponent()
        {
            var resources = new
                System./n ..... /n //View Source file for more details /n }

48. Example

Project: MapleShark
Source File: FindReplace.cs
View license
private void InitializeComponent()
        {
            var resources = new
                System./n ..... /n //View Source file for more details /n }

49. Example

Project: MapleShark
Source File: CollectionEditorGui.cs
View license
private void InitializeComponent()
        {
            var resources = new System.Resources.Resour/n ..... /n //View Source file for more details /n }

50. Example

View license
public static DialogResult Show(string title, string promptText, ref string value)
        {
       /n ..... /n //View Source file for more details /n }