Novo

Forum kao aplikacija na telefonu

Dodajte forum na početni ekran i koristite ga kao aplikaciju, sa menijem na dnu ekrana.

  • 3 odgovora
  • 2.288 pregleda

Najnovija ↓

Pozicija panela sa Dock-Left, Dock-top i slicnim 11.08.2009. u 10:34 · pre 209 meseci #1
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!
Re: Pozicija panela sa Dock-Left, Dock-top i slicnim 11.08.2009. u 13:58 · pre 209 meseci #2
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();

        }


Re: Pozicija panela sa Dock-Left, Dock-top i slicnim 11.08.2009. u 14:25 · pre 209 meseci #3
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

Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme