[Newbie] Customize Anchor properties ?

  • Thread starter =?ISO-8859-15?Q?St=E9phane_Miqueu?=
  • Start date
?

=?ISO-8859-15?Q?St=E9phane_Miqueu?=

Hi,
Sorry for my english, i'm a french newbie in vb.net.

Here is my problem :
In a window, I have 3 datagrid. I'm looking for a way to customize the
anchor properties to make my datagrid #2 and #3 going down
'proportionaly' when I resize the window.

To summerize, if I expand the window, I want my datagrids growing of
1/3, datagrid #2 going down of 1/3 and datagrid #3 going down of 2/3.

Currently I'm using a french developping tool that allow that sort of
thing without coding anything and I can not find it in VB.NET. Am I
blind ?
 
I

Izzy

I used a datagridview and placed 3 on a form. Grid A is at the top of
the form and grids B and C are under grid A placed next to each other.

If I anchor grids B and C to the Top, Bottom they expand
proportionately with the bottom of the form and hold their upper
position just under grid A.

Does this help?

Izzy
 
?

=?ISO-8859-15?Q?St=E9phane_Miqueu?=

Izzy avait écrit le 03/10/2006 :
I used a datagridview and placed 3 on a form. Grid A is at the top of
the form and grids B and C are under grid A placed next to each other.

If I anchor grids B and C to the Top, Bottom they expand
proportionately with the bottom of the form and hold their upper
position just under grid A.

Does this help?

Izzy
Thanks for answer.
Unfortunately it doesn't help. In my window, there is grib A and under
grib B and under grid C. They all have the same size (width and
height).
So when I resize my window I want all the grids to resize of 33%, grid
C to move bottom of 66% and grid B to move bottom of 33%.

If I'm not clear, I can mail the form.
 
I

Izzy

Ok here is how you can do this:

Add a Table Layout Panel to the form, by default it will have 2 rows
and 2 columns.

Right click on the Table Layout Panel and select "Column" then
"Delete".
Now you should only have 2 rows, right click on the Table Layout Panel
and select "Row" then "Add".

Now you should have 3 rows. Add Grid A to the 1st row, Grid B to the
2nd row, and Grid C to the 3rd row.

Set the "Dock" property of each grid to "Fill"

Now click on the Table Layout Panel to select it and click in the
"Rows" collection property, when the button appears, click it.

Once in the rows collection of the Table Layout Panel, you can set each
row to whatever Size percent you want.

Let me know if you want me too send you my sample project.

Izzy
 
?

=?ISO-8859-15?Q?St=E9phane_Miqueu?=

Izzy avait énoncé :
Ok here is how you can do this:

Add a Table Layout Panel to the form, by default it will have 2 rows
and 2 columns.

Right click on the Table Layout Panel and select "Column" then
"Delete".
Now you should only have 2 rows, right click on the Table Layout Panel
and select "Row" then "Add".

Now you should have 3 rows. Add Grid A to the 1st row, Grid B to the
2nd row, and Grid C to the 3rd row.

Set the "Dock" property of each grid to "Fill"

Now click on the Table Layout Panel to select it and click in the
"Rows" collection property, when the button appears, click it.

Once in the rows collection of the Table Layout Panel, you can set each
row to whatever Size percent you want.

Let me know if you want me too send you my sample project.

Izzy

Thanks for your answer. I'm back from holiday and I will try this ASAP.
I keep your email just in case ....
 
?

=?ISO-8859-15?Q?St=E9phane_Miqueu?=

Izzy a formulé ce mardi :
Ok here is how you can do this:

Add a Table Layout Panel to the form, by default it will have 2 rows
and 2 columns.

Right click on the Table Layout Panel and select "Column" then
"Delete".
Now you should only have 2 rows, right click on the Table Layout Panel
and select "Row" then "Add".

Now you should have 3 rows. Add Grid A to the 1st row, Grid B to the
2nd row, and Grid C to the 3rd row.

Set the "Dock" property of each grid to "Fill"

Now click on the Table Layout Panel to select it and click in the
"Rows" collection property, when the button appears, click it.

Once in the rows collection of the Table Layout Panel, you can set each
row to whatever Size percent you want.

Let me know if you want me too send you my sample project.

Izzy
Thanks a lot, it's just great. :D
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top