943,548 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 655
  • C++ RSS
Oct 14th, 2008
0

resize control

Expand Post »
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!
Attached Thumbnails
Click image for larger version

Name:	docking.JPG
Views:	13
Size:	21.8 KB
ID:	7750  
Last edited by Liszt; Oct 14th, 2008 at 5:43 am.
Similar Threads
Reputation Points: 33
Solved Threads: 6
Junior Poster
Liszt is offline Offline
122 posts
since Oct 2008
Oct 14th, 2008
0

Re: resize control

i found out that events could be used so SizeChanged and some mathematics did it.
Reputation Points: 33
Solved Threads: 6
Junior Poster
Liszt is offline Offline
122 posts
since Oct 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: reading a file in hex
Next Thread in C++ Forum Timeline: how to use the ctime function in C++?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC