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

Controls alignment

I would like to know how do I align the controls on th Win form:

Align TreeView on the left
Align ListView on the client area
Align datagridview to the right ?
Jul 6 '06 #1
2 4983
Set the TreeView Dock property to Left.
Set the DataGridView Dock property to Right.
Set the ListView Dock property to Fill.

(in that order)

"Alan T" <al*************@yahoo.com.auwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>I would like to know how do I align the controls on th Win form:

Align TreeView on the left
Align ListView on the client area
Align datagridview to the right ?

Jul 6 '06 #2
1) Add a panel, panel1, to the form and set Dock property to Left
2) Add a TreeView to panel1 and set Dock property to fill
3) Add a panel, panel2, to the form and set Dock property to Fill
4) Add a panel, panel3, to panel2 and set Dock property to Right
5) Add a DataGridView to panel3 and set Dock property to Fill
6) Add a panel, panel4 to panel2 and set Dock property to Fill
7) Add a ListView to panel4 and set Dock property to Fill

If you want to resize the TreeView ListView and DataGridView, add the
following steps
1A) Add a Splitter to form and set Dock property to Left
4A) Add a Splitter to panel2 and set Dock property to Right

If you add the panels in wrong order the panels that has Dock = Fill will go
behind the other panels.
/Lennart

"Alan T" <al*************@yahoo.com.auskrev i meddelandet
news:%2****************@TK2MSFTNGP03.phx.gbl...
>I would like to know how do I align the controls on th Win form:

Align TreeView on the left
Align ListView on the client area
Align datagridview to the right ?

Jul 6 '06 #3

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

Similar topics

0
by: Bruce | last post by:
Hello, Back in the Access 97 days, if I had two texboxes on a form or report that overlapped, and I selected both and did a Format, Align, Top from the menu in design view, the controls would...
2
by: ALI-R | last post by:
Hi I've created a bunch user comtrols for the footer,header,navigation bar of a webpage ,I have two problems: 1) All the controls are in the folder "Control" of the root and all the images...
11
by: VJ | last post by:
I am looking to have 2 Tab Controls on a Windows Forms.. One with Tabs on Top and another with Tabs on the side... I want them both to occupy the entire area of the form, but I need the Tab...
1
by: Eric | last post by:
I have a user control (with three controls inside it) that appears multiple times in the containing page. Sometimes I want to hide the rightmost control in the UC but if I do that it screws up the...
2
by: swapna_munukoti | last post by:
Hi all, I am new to asp.net. So, may be my question may be simple. But I am feeling hard to achieve this. I need to create a web custom label control, for which I have to assign new property...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.