Autor Beitrag
blind
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Do 13.03.08 16:12 
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:

ausblenden volle Höhe C#-Quelltext
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();
            //
            // toolStripContainer1
            //
            //
            // toolStripContainer1.ContentPanel
            //
            this.toolStripContainer1.ContentPanel.Size = new System.Drawing.Size(894410);
            this.toolStripContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.toolStripContainer1.Location = new System.Drawing.Point(00);
            this.toolStripContainer1.Name = "toolStripContainer1";
            this.toolStripContainer1.Size = new System.Drawing.Size(894435);
            this.toolStripContainer1.TabIndex = 0;
            //
            // toolStripContainer1.TopToolStripPanel
            //
            this.toolStripContainer1.TopToolStripPanel.Controls.Add(this.toolStrip1);
            //
            // toolStrip1
            //
            this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStrip1.Location = new System.Drawing.Point(30);
            this.toolStrip1.Name = "toolStrip1";
            this.toolStrip1.Size = new System.Drawing.Size(11325);
            this.toolStrip1.TabIndex = 0;
            //
            // TestForm5
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(894435);
            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 user profile iconChristian S.: Topic aus C# - Die Sprache verschoben am Do 13.03.2008 um 16:18


Zuletzt bearbeitet von blind am Do 13.03.08 17:06, insgesamt 1-mal bearbeitet
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4805
Erhaltene Danke: 1061

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Do 13.03.08 16:27 
Hattest du gestern nicht schon in einem anderen Forum danach gefragt?
Wenn ja, was gefällt dir an den Komponenten nicht (insbesondere der ToolBarDock)?
blind Threadstarter
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Do 13.03.08 17:05 
Ja ich habe gestern schon in einem anderen Forum danach gefragt.

Es ist leider eine Vorgabe, dass ich mit ToolStrips arbeiten muss. Ich habe auch versucht das Beispiel umzuschreiben damit es mit ToolStrips funktioniert, dieses ist mir aber leider nicht geglückt. Ausserdem ist der Beispielcode halt recht unübersichtlich und mit ToolStrips soll dieses ja behoben sein.

mfg
blind