473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Stange docking

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
Nov 15 '05 #1
3 1501
hi Frank
Normally this should not be happening . however this might be happening
because you did some changes to the pannal names while you was designing
the form( some time this happens). why don't you try to erdraw the
pannals.

Nov 15 '05 #2
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

Nov 15 '05 #3
The problem is for all the instance of a class.
Franck

P.S : I have send the cod in another message

"Mohamoss" <mo************@egdsc.microsoft.com> a écrit dans le message de
news: bM**************@cpmsftngxa06.phx.gbl...
hi Frank
Normally this should not be happening . however this might be happening
because you did some changes to the pannal names while you was designing
the form( some time this happens). why don't you try to erdraw the
pannals.

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Lecture Snoddddgrass | last post by:
Greetings, Can anyone recommend a good 3rd party docking windows component for WinForms? I'm looking for something that allows windows to not only be docked but to "popout", much like the...
1
by: Adam Teasdale Hartshorne | last post by:
Using the code below I get a very stange result. I assume that I must be doing something wrong, but I can't figure out what it is. getTriangleEdges(t,t1e) ; for (int i = 0 ; i <...
0
by: ka | last post by:
I'm using Corwnwood.Magic library for docking in my application. My application to let the users to create their screen look to show some particular data. I treid to dock my things in the way,...
7
by: Chris Dunaway | last post by:
Where/How does VS determing docking order? I created a form with a panel docked to the top and a tab control with fill docking. I had added some tabs and place some controls, etc., and decided...
25
by: Dennis | last post by:
Has anyone really gotten the Docking and Splitter Bars to work for anyting but the simplest application for two controls and one splitter bar filling the whole form? If so, can you enlighten my on...
4
by: Enrique | last post by:
hi all, i'd like to know how i could do a docking menu and docking toolbar. i know it's not so easy y VS .NET 2002 and 2003. anything will help me: links, code, articles..... thanks a...
1
by: Joe | last post by:
I'm creating a C# application, and want to use docking windows. However, I want the docking windows to look like the docking windows withing VS2005, with a title bar, close button, etc... When...
2
by: Matt Brown - identify | last post by:
Hello, I've spent the better part of the day going over code and thinking and have come up with the following docking method that works perfectly. At this point, my brain is about to explode...
0
by: nhc1987 | last post by:
Do anyone have the Docking control (docking sidebar, docking panel, ..) library with Vista style ? I use a properties grid and I want to dock it on the right of main form. Now, I have some really....
2
by: =?Utf-8?B?aGVyYmVydA==?= | last post by:
I need to develop a "docking station" simulator for Apple IPod in .NET. The PC acting as a development station connects to the IPod docking station using a parallel port. Where is this software...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.