473,320 Members | 1,831 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,320 software developers and data experts.

Dock Problem

I got one progress bar , one panel in my form.
First , I put the progress bar at the bottom of the form and set "dock" to
bottom. It runs very well.
then, I put the panel in the form (set the dock to 'bottom') , Now i want
that panel at the bottom of the form , the progress bar will be placed
uponthe panel. I try to do that.
However, the panel cannot placed at the bottom , (is that because I set
panel & progress 's dock to bottom??)

Please help
Nov 21 '05 #1
2 2684
"Agnes" <ag***@dynamictech.com.hk> wrote in message news:uS**************@TK2MSFTNGP12.phx.gbl...
First , I put the progress bar at the bottom of the form and set "dock" to bottom. It runs very well.
then, I put the panel in the form (set the dock to 'bottom') , Now i want that panel at the bottom of the form ,
Agnes,

If you need the Panel docked against the bottom edge of the Form,
then it must be the first Control that is docked to the Bottom. When
multiple Controls dock to the same border, first one wins and all
latecomers stack inward.
the progress bar will be placed uponthe panel.


If the Progress Bar is to be placed on the Panel, then call Add( ) on
the Panel.Controls collection to add the Progress Bar to the Panel
[not the Form].

The pseudo code will look similar to this,

create new Panel
code to set Panel properties
set Panel to Dock on the Bottom
add Panel to Form.Controls
'
create new Progress Bar
code to set Progress Bar properties
set Progress Bar to Dock on the Bottom
add Progress Bar to Panel.Controls

This way the Progress Bar is at the bottom of the Panel, and the Panel
is at the bottom of the Form.
Derek Harmon
Nov 21 '05 #2
Agnes

In addition to Derek, this is called the Z Order (bottom to top)

Cor
Nov 21 '05 #3

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

Similar topics

2
by: JohnnyB via DotNetMonster.com | last post by:
Hello, I dont know, if this has already been asked before, I'm sorry if so. VisualBasic: My problem (happens with TreeView, not with AxWebBrowser): treeview uses (no matter, if dock = left,...
2
by: James | last post by:
I have a forms application which has many controls such as buttons,labels,listviews,text boxes etc. If you set the window size to maximum size so that it would expand to the size of the screen the...
4
by: zav | last post by:
Hi all i`m having a small problem with windows forms, i`m attempting to provide the following functionality to a form. Ability to drag and drop another form onto a form and then to dock this...
0
by: jackywei | last post by:
Hi, We are doing a C# project. In this project we want to have a toolbar(or rebar) and a dialog bar. And these bars must support dock. We find them on the Internet and find some demo. But we fnd...
0
by: A_PK | last post by:
Hi I got the following environment.......Form1 and inside Form1, got Panel1.... I also got another new Form ...named Form2... Form1, Panel1 Form2 Inside Form1, I click a button to show Form2...
0
by: myPosts | last post by:
Hi all, I am having problem at a time of using datagrid in c#.net. On currentcell change event of datagrid i am displaying one combobox and setting location of combobox depending on location...
2
by: DBC User | last post by:
I am trying to dock a datagrid in a form and it does dock to fill but I want to extend all the columns I have to fit on the whole screen. But it is showing the columns and then leaving bunch of...
7
by: Zytan | last post by:
I just wanted a little practice with the WebBrowser control, so I did the VB guided tour example here in C#: http://msdn2.microsoft.com/en-us/library/a08t4ke7(VS.80).aspx The tutorial asks to put...
12
by: Rotsey | last post by:
Hi, I have not had a good answer to this question. I put a menustrip on a form and so it is a main menu in affect. Now I put a webbrowser control on the form and set it dock fill. Of...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.