System.Windows.Forms.Design.ControlDesigner.EnableDesignMode(System.Windows.Forms.Control, string)

Here are the examples of the csharp api class System.Windows.Forms.Design.ControlDesigner.EnableDesignMode(System.Windows.Forms.Control, string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

13 Examples 7

1. Example

Project: Krypton
Source File: KryptonNavigatorDesigner.cs
private void OnPageInserted(object sender, TypedCollectionEventArgs<KryptonPage> e)
        {
            // Let the user design the new page surface
            EnableDesignMode(e.Item, e.Item.Name);
            UpdateVerbStatus();
        }

2. Example

Project: AeroSuite
Source File: HeaderlessTabControl.cs
public override void Initialize(IComponent component)
            {
                base.Initialize(component);

                if (component is HeaderlessTabControl)
                {
                    HeaderlessTabControl tabControl = component as HeaderlessTabControl;
                    this.EnableDesignMode(tabControl.SelectedTab, "SelectedTab");
                }
            }

3. Example

Project: Neo
Source File: ChrRacesEditorControl.cs
public override void Initialize(System.ComponentModel.IComponent component)
        {
            base.Initialize(component);

            var ctl = (this.Control as ChrRacesEditorControl).TabControl as TabControl;
            EnableDesignMode(ctl, "TabControl");
            foreach (TabPage page in ctl.TabPages) EnableDesignMode(page, page.Name);
        }

4. Example

Project: Neo
Source File: ExempleEditorControl.cs
public override void Initialize(System.ComponentModel.IComponent component)
        {
            base.Initialize(component);

            var ctl = (this.Control as ExempleEditorControl).TabControl as TabControl;
            EnableDesignMode(ctl, "TabControl");
            foreach (TabPage page in ctl.TabPages) EnableDesignMode(page, page.Name);
        }

5. Example

Project: Neo
Source File: CreatureEditorControl.cs
public override void Initialize(System.ComponentModel.IComponent component)
        {
            base.Initialize(component);

            var ctl = (this.Control as CreatureEditorControl).TabControl as TabControl;
            EnableDesignMode(ctl, "TabControl");
            foreach (TabPage page in ctl.TabPages) EnableDesignMode(page, page.Name);
        }

6. Example

Project: Neo
Source File: GameObjectEditorControl.cs
public override void Initialize(System.ComponentModel.IComponent component)
        {
            base.Initialize(component);

            var ctl = (this.Control as GameObjectEditorControl).TabControl as TabControl;
            EnableDesignMode(ctl, "TabControl");
            foreach (TabPage page in ctl.TabPages) EnableDesignMode(page, page.Name);
        }

7. Example

Project: Neo
Source File: ItemEditorControl.cs
public override void Initialize(System.ComponentModel.IComponent component)
            {
                base.Initialize(component);

                var ctl = (this.Control as ItemEditorControl).TabControl as TabControl;
                EnableDesignMode(ctl, "TabControl");
                foreach (TabPage page in ctl.TabPages) EnableDesignMode(page, page.Name);
            }

8. Example

Project: Krypton
Source File: KryptonNavigatorDesigner.cs
public override void Initialize(IComponent component)
        {
            // Let base class do sta/n ..... /n //View Source file for more details /n }

9. Example

Project: Krypton
Source File: KryptonGroupBoxDesigner.cs
public override void Initialize(IComponent component)
        {
            Debug.Assert(component != null);

            // Validate the parameter reference
            if (component == null) throw new ArgumentNullException("component");

            // Let base class do standard stuff
            base.Initialize(component);

            // Cast to correct type
            _groupBox = component as KryptonGroupBox;

            // The resizing handles around the control need to change depending on the
            // value of the AutoSize and AutoSizeMode properties. When in AutoSize you
            // do not get the resizing handles, otherwise you do.
            AutoResizeHandles = true;

            // Acquire service interfaces
            _designerHost = (IDesignerHost)GetService(typeof(IDesignerHost));

            // Let the internal panel in the container be designable
            if (_groupBox != null)
                EnableDesignMode(_groupBox.Panel, "Panel");
        }

10. Example

Project: Krypton
Source File: KryptonGroupDesigner.cs
public override void Initialize(IComponent component)
        {
            Debug.Assert(component != null);

            // Validate the parameter reference
            if (component == null) throw new ArgumentNullException("component");

            // Let base class do standard stuff
            base.Initialize(component);

            // Cast to correct type
            _group = component as KryptonGroup;

            // The resizing handles around the control need to change depending on the
            // value of the AutoSize and AutoSizeMode properties. When in AutoSize you
            // do not get the resizing handles, otherwise you do.
            AutoResizeHandles = true;

            // Acquire service interfaces
            _designerHost = (IDesignerHost)GetService(typeof(IDesignerHost));

            // Let the internal panel in the container be designable
            if (_group != null)
                EnableDesignMode(_group.Panel, "Panel");
        }

11. Example

Project: Krypton
Source File: KryptonHeaderGroupDesigner.cs
public override void Initialize(IComponent component)
        {
            Debug.Assert(component !/n ..... /n //View Source file for more details /n }

12. Example

Project: TaskScheduler
Source File: HidableDetailPanel.cs
public override void Initialize(System.ComponentModel.IComponent component)
		{
			base.Initialize(component);

		    var panel = Control as HidableDetailPanel;
		    if (panel != null)
				EnableDesignMode(panel.DetailArea, "DetailArea");

			var service = GetService(typeof(DesignerActionService)) as DesignerActionService;
		    service?.Remove(component);
		}

13. Example

Project: Krypton
Source File: KryptonSplitContainerDesigner.cs
public override void Initialize(IComponent component)
        {
            Debug.Assert(component !/n ..... /n //View Source file for more details /n }