this is the code
You can notice that at design-time, resize the height don't move the panel
dock on bottom
Franck
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Composants
{
public class _TableBaseComposants : Composants._FicheComposants
{
public Composants.Panel_pm panel_cmd;
private Composants.Panel_pm panel_all;
public Composants.Panel_pm panel_Grid;
public Composants.Splitter_pm splitter_pm1;
public Composants.Panel_pm panel_Fiche;
private System.ComponentModel.IContainer components = null;
public _TableBaseComposants()
{
// Cet appel est requis par le Concepteur Windows Form.
InitializeComponent();
// TODO : ajoutez les initialisations après l'appel à InitializeComponent
}
/// <summary>
/// Nettoyage des ressources utilisées.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Code généré par le concepteur
/// <summary>
/// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
/// le contenu de cette méthode avec l'éditeur de code.
/// </summary>
private void InitializeComponent()
{
this.panel_cmd = new Composants.Panel_pm();
this.panel_all = new Composants.Panel_pm();
this.panel_Fiche = new Composants.Panel_pm();
this.splitter_pm1 = new Composants.Splitter_pm();
this.panel_Grid = new Composants.Panel_pm();
this.panel_all.SuspendLayout();
this.SuspendLayout();
//
// panel_cmd
//
this.panel_cmd.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel_cmd.Location = new System.Drawing.Point(0, 217);
this.panel_cmd.Name = "panel_cmd";
this.panel_cmd.NoResize = false;
this.panel_cmd.Size = new System.Drawing.Size(728, 56);
this.panel_cmd.TabIndex = 0;
//
// panel_all
//
this.panel_all.Controls.Add(this.panel_Fiche);
this.panel_all.Controls.Add(this.splitter_pm1);
this.panel_all.Controls.Add(this.panel_Grid);
this.panel_all.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel_all.Location = new System.Drawing.Point(0, 0);
this.panel_all.Name = "panel_all";
this.panel_all.NoResize = false;
this.panel_all.Size = new System.Drawing.Size(728, 217);
this.panel_all.TabIndex = 1;
//
// panel_Fiche
//
this.panel_Fiche.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel_Fiche.Location = new System.Drawing.Point(155, 0);
this.panel_Fiche.Name = "panel_Fiche";
this.panel_Fiche.NoResize = false;
this.panel_Fiche.Size = new System.Drawing.Size(573, 217);
this.panel_Fiche.TabIndex = 2;
//
// splitter_pm1
//
this.splitter_pm1.Location = new System.Drawing.Point(152, 0);
this.splitter_pm1.Name = "splitter_pm1";
this.splitter_pm1.Size = new System.Drawing.Size(3, 217);
this.splitter_pm1.TabIndex = 1;
this.splitter_pm1.TabStop = false;
//
// panel_Grid
//
this.panel_Grid.Dock = System.Windows.Forms.DockStyle.Left;
this.panel_Grid.Location = new System.Drawing.Point(0, 0);
this.panel_Grid.Name = "panel_Grid";
this.panel_Grid.NoResize = false;
this.panel_Grid.Size = new System.Drawing.Size(152, 217);
this.panel_Grid.TabIndex = 0;
//
// _TableBaseComposants
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(728, 269);
this.Controls.Add(this.panel_all);
this.Controls.Add(this.panel_cmd);
this.Name = "_TableBaseComposants";
this.Resize += new System.EventHandler(this._TableBaseComposants_Resi ze);
this.Load += new System.EventHandler(this._TableBaseComposants_Load );
this.panel_all.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private void _TableBaseComposants_Load(object sender, System.EventArgs e)
{
}
private void _TableBaseComposants_Resize(object sender, System.EventArgs e)
{
}
}
}
"Franck Jobard" <wo*******@ifrance.com> a écrit dans le message
news:<#1**************@TK2MSFTNGP09.phx.gbl>...
Hello
I have a form (winform) with 2 panels.
The first one (panel_cmd) is dock to bottom.
The Second one (panel_all) is dock to fill.
At design, When i resize the form, the panel_cmd don't follow the new
size.
If i resize the height, it stay an empty place on the bottom. No panel
have
been resized.
Can somebody tell me what happen (only with one winform)
Thanks in advance
Franck