[ johnnyc @ 11.08.2009. 09:34 ] @
Pozdrav,

Malo se "svadjam" sa pozicijama...

Imam dve komponente, jedna je ToolStrip, druga je MenuStrip.

Nikako ne uspevam da nateram MenuStrip da mi bude "iznad" (skroz pri vrhu forme), u odnosu na ToolStrip. Oba imaju podesena Dock - Top.


Da li moze pomoc oko ovoga? Hvala unapred!
[ DarkMan @ 11.08.2009. 12:58 ] @
U metodi InitializeComponent obezbedi da se na formu prvo dodaje ToolStrip a zatim MenuStrip.

Code:

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            ...

            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(409, 195);

            this.Controls.Add(this.toolStrip1);    --> prvo ide toolstrip
            this.Controls.Add(this.menuStrip1); --> zatim menustrip

            this.MainMenuStrip = this.menuStrip1;
            this.Name = "Form1";
            this.Text = "Form1";
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }


[ johnnyc @ 11.08.2009. 13:25 ] @
nope, still the same...

Code:

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ControlPanel));
            this.panel1 = new System.Windows.Forms.Panel();
            this.listView1 = new System.Windows.Forms.ListView();
            this.menuStrip1 = new System.Windows.Forms.MenuStrip();

// itd itd

[ johnnyc @ 11.08.2009. 13:30 ] @
e, uspeo sam - igrao sam se sa 'Bring To Front' i 'Send To Back' opcijama na formi i namestio sam nekako.


hvala u svakom slucaju!