Inheritance: System.Windows.Forms.UserControl
Beispiel #1
0
 private void InitializeComponent()
 {
     this.vScrollBar     = new System.Windows.Forms.VScrollBar();
     this.hScrollBar     = new System.Windows.Forms.HScrollBar();
     this.diagramControl = new XSDDiagram.DiagramControl();
     this.SuspendLayout();
     //
     // vScrollBar
     //
     this.vScrollBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.vScrollBar.Location      = new System.Drawing.Point(437, 0);
     this.vScrollBar.Name          = "vScrollBar";
     this.vScrollBar.Size          = new System.Drawing.Size(17, 348);
     this.vScrollBar.SmallChange   = 5;
     this.vScrollBar.TabIndex      = 0;
     this.vScrollBar.ValueChanged += new System.EventHandler(this.vScrollBar_ValueChanged);
     //
     // hScrollBar
     //
     this.hScrollBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.hScrollBar.Location      = new System.Drawing.Point(0, 348);
     this.hScrollBar.Name          = "hScrollBar";
     this.hScrollBar.Size          = new System.Drawing.Size(437, 17);
     this.hScrollBar.SmallChange   = 5;
     this.hScrollBar.TabIndex      = 1;
     this.hScrollBar.ValueChanged += new System.EventHandler(this.vScrollBar_ValueChanged);
     //
     // diagramControl
     //
     this.diagramControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                         | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.diagramControl.Location   = new System.Drawing.Point(0, 0);
     this.diagramControl.Margin     = new System.Windows.Forms.Padding(0);
     this.diagramControl.Name       = "diagramControl";
     this.diagramControl.Size       = new System.Drawing.Size(437, 348);
     this.diagramControl.TabIndex   = 2;
     this.diagramControl.MouseDown += new System.Windows.Forms.MouseEventHandler(this.diagramControl_MouseDown);
     this.diagramControl.MouseMove += new System.Windows.Forms.MouseEventHandler(this.diagramControl_MouseMove);
     this.diagramControl.Resize    += new System.EventHandler(this.diagramControl_Resize);
     this.diagramControl.MouseUp   += new System.Windows.Forms.MouseEventHandler(this.diagramControl_MouseUp);
     //
     // DiagramControlContainer
     //
     this.Controls.Add(this.diagramControl);
     this.Controls.Add(this.hScrollBar);
     this.Controls.Add(this.vScrollBar);
     this.Name = "DiagramControlContainer";
     this.Size = new System.Drawing.Size(454, 365);
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.vScrollBar = new System.Windows.Forms.VScrollBar();
     this.hScrollBar = new System.Windows.Forms.HScrollBar();
     this.diagramControl = new XSDDiagram.DiagramControl();
     this.SuspendLayout();
     //
     // vScrollBar
     //
     this.vScrollBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.vScrollBar.Location = new System.Drawing.Point(437, 0);
     this.vScrollBar.Name = "vScrollBar";
     this.vScrollBar.Size = new System.Drawing.Size(17, 348);
     this.vScrollBar.SmallChange = 5;
     this.vScrollBar.TabIndex = 0;
     this.vScrollBar.ValueChanged += new System.EventHandler(this.vScrollBar_ValueChanged);
     //
     // hScrollBar
     //
     this.hScrollBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.hScrollBar.Location = new System.Drawing.Point(0, 348);
     this.hScrollBar.Name = "hScrollBar";
     this.hScrollBar.Size = new System.Drawing.Size(437, 17);
     this.hScrollBar.SmallChange = 5;
     this.hScrollBar.TabIndex = 1;
     this.hScrollBar.ValueChanged += new System.EventHandler(this.vScrollBar_ValueChanged);
     //
     // diagramControl
     //
     this.diagramControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.diagramControl.Location = new System.Drawing.Point(0, 0);
     this.diagramControl.Margin = new System.Windows.Forms.Padding(0);
     this.diagramControl.Name = "diagramControl";
     this.diagramControl.Size = new System.Drawing.Size(437, 348);
     this.diagramControl.TabIndex = 2;
     this.diagramControl.MouseDown += new System.Windows.Forms.MouseEventHandler(this.diagramControl_MouseDown);
     this.diagramControl.MouseMove += new System.Windows.Forms.MouseEventHandler(this.diagramControl_MouseMove);
     this.diagramControl.Resize += new System.EventHandler(this.diagramControl_Resize);
     this.diagramControl.MouseUp += new System.Windows.Forms.MouseEventHandler(this.diagramControl_MouseUp);
     //
     // DiagramControlContainer
     //
     this.Controls.Add(this.diagramControl);
     this.Controls.Add(this.hScrollBar);
     this.Controls.Add(this.vScrollBar);
     this.Name = "DiagramControlContainer";
     this.Size = new System.Drawing.Size(454, 365);
     this.ResumeLayout(false);
 }