- Where Developers Learn, Share, & Build Careers


I have a windows form written in VB.NET (I'm also taking suggestions in C #) and I have Two datagrid views are vertically aligned, so above each other. I would like to be able to maximize the window and would like to extend the datagrid window with the window so that it looks roughly the same but bigger.

I have tried to use the docking and anchoring control and I have not found any way to do this without having to overlap or leave huge spaces in which this should be expanded.

Thank you

You first make grid and second dock to fill on top While docking should be executed before top docking (you can adjust it in the document settings tool window) This solution will first release the grid at the same height. You can also handle the form resize event and calculate the position and size of the grid.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -