Hi Leute!
Ich habe einen ToolStripContainer und auch ein ToolStrip menü. Ich kann das Menü auch wie erwünscht an allen 4 Seiten des Fensters Plazieren.
Nun meine Frage wie mache ich es, dass ich das Menü auch frei im Fenster Plazieren kann sie wie es im Visual Studio ja auch realisiert ist?
Hier mal einwenig Code:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54:
| C#-Code:
private void InitializeComponent() { this.toolStripContainer1 = new System.Windows.Forms.ToolStripContainer(); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.toolStripContainer1.TopToolStripPanel.SuspendLayout(); this.toolStripContainer1.SuspendLayout(); this.SuspendLayout(); this.toolStripContainer1.ContentPanel.Size = new System.Drawing.Size(894, 410); this.toolStripContainer1.Dock = System.Windows.Forms.DockStyle.Fill; this.toolStripContainer1.Location = new System.Drawing.Point(0, 0); this.toolStripContainer1.Name = "toolStripContainer1"; this.toolStripContainer1.Size = new System.Drawing.Size(894, 435); this.toolStripContainer1.TabIndex = 0; this.toolStripContainer1.TopToolStripPanel.Controls.Add(this.toolStrip1); this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None; this.toolStrip1.Location = new System.Drawing.Point(3, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new System.Drawing.Size(113, 25); this.toolStrip1.TabIndex = 0; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(894, 435); this.Controls.Add(this.toolStripContainer1); this.Name = "TestForm5"; this.Text = "TestForm5"; this.toolStripContainer1.TopToolStripPanel.ResumeLayout(false); this.toolStripContainer1.TopToolStripPanel.PerformLayout(); this.toolStripContainer1.ResumeLayout(false); this.toolStripContainer1.PerformLayout(); this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.ToolStripContainer toolStripContainer1; private System.Windows.Forms.ToolStrip toolStrip1; |
Moderiert von
Christian S.: Topic aus C# - Die Sprache verschoben am Do 13.03.2008 um 16:18