RSS Forums RSS

resize control

Please support our C++ advertiser: Programming Forums
Thread Solved
Reply
Posts: 122
Reputation: Liszt is an unknown quantity at this point 
Solved Threads: 6
Liszt Liszt is offline Offline
Junior Poster

resize control

  #1  
Oct 14th, 2008
I have a little problem to dock a grid with a panel.
What i have done is to first dock a panel in the top of the form. What i then want to do is to dock a datagrid so it Fills the whole form but not so it will go inunder the panel that is docked at the top of form(I have attached a picture how it looks like).
What i try to achieve is when the form will be maximized the datagrid will also be bigger and the columnheaders will be just under the panel as now and then also fill out in the sides and bottom of form.
If i dock the datagrid with Fill, the columnheaders will come inunder the panel wich i dont want.
Thanks in advance!
Last edited by Liszt : Oct 14th, 2008 at 4:43 am.
Attached Images
File Type: jpg docking.JPG (21.8 KB, 2 views)
AddThis Social Bookmark Button
Reply With Quote  
Posts: 122
Reputation: Liszt is an unknown quantity at this point 
Solved Threads: 6
Liszt Liszt is offline Offline
Junior Poster

Re: resize control

  #2  
Oct 14th, 2008
i found out that events could be used so SizeChanged and some mathematics did it.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Views: 394 | Replies: 1 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:11 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC