Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Pozicija panela sa Dock-Left, Dock-top i slicnim

[es] :: .NET :: .NET Desktop razvoj :: Pozicija panela sa Dock-Left, Dock-top i slicnim

[ Pregleda: 1495 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

johnnyc

Član broj: 175590
Poruke: 202
*.dynamic.sbb.rs.



Profil

icon Pozicija panela sa Dock-Left, Dock-top i slicnim11.08.2009. u 09:34 - pre 178 meseci
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!
 
Odgovor na temu

DarkMan
Darko Matesic

Član broj: 20445
Poruke: 572
77.46.213.*

Jabber: DarkMan


Profil

icon Re: Pozicija panela sa Dock-Left, Dock-top i slicnim11.08.2009. u 12:58 - pre 178 meseci
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();

        }


 
Odgovor na temu

johnnyc

Član broj: 175590
Poruke: 202
*.dynamic.sbb.rs.



Profil

icon Re: Pozicija panela sa Dock-Left, Dock-top i slicnim11.08.2009. u 13:25 - pre 178 meseci
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

 
Odgovor na temu

johnnyc

Član broj: 175590
Poruke: 202
*.dynamic.sbb.rs.



Profil

icon Re: Pozicija panela sa Dock-Left, Dock-top i slicnim11.08.2009. u 13:30 - pre 178 meseci
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!
 
Odgovor na temu

[es] :: .NET :: .NET Desktop razvoj :: Pozicija panela sa Dock-Left, Dock-top i slicnim

[ Pregleda: 1495 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.