Changing chart size on window resizeHello, <div><br/></div> <div>I have an application displaying a graph at the moment, that works well, but one of my users is complaining he has to scroll around to see the whole graph. Now while I would love to tell him to get a bigger monitor, i feel a more compassionate change might be worthwhile.</div> <div><br/></div> <div>What I am asking is, can the chart have its size set as a % of its container, like most other controls. </div>© 2009 Microsoft Corporation. All rights reserved.Tue, 14 Jul 2009 05:18:10 Zaaaf210f-af3f-4406-99be-a68d91333f25http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/aaaf210f-af3f-4406-99be-a68d91333f25#aaaf210f-af3f-4406-99be-a68d91333f25http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/aaaf210f-af3f-4406-99be-a68d91333f25#aaaf210f-af3f-4406-99be-a68d91333f25kingy0489http://social.msdn.microsoft.com/Profile/en-US/?user=kingy0489Changing chart size on window resizeHello, <div><br/></div> <div>I have an application displaying a graph at the moment, that works well, but one of my users is complaining he has to scroll around to see the whole graph. Now while I would love to tell him to get a bigger monitor, i feel a more compassionate change might be worthwhile.</div> <div><br/></div> <div>What I am asking is, can the chart have its size set as a % of its container, like most other controls. </div>Fri, 03 Jul 2009 21:21:38 Z2009-07-03T21:21:38Zhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/aaaf210f-af3f-4406-99be-a68d91333f25#fdcc5dae-4169-42a7-a5dd-7ce02cecd98dhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/aaaf210f-af3f-4406-99be-a68d91333f25#fdcc5dae-4169-42a7-a5dd-7ce02cecd98dAlex Gorevhttp://social.msdn.microsoft.com/Profile/en-US/?user=Alex%20GorevChanging chart size on window resizeYou should use control anchoring or docking to achieve something like that. You can also override the size changed event and apply your own logic.<br/><br/>Alex.<hr class="sig"><a href="http://blogs.msdn.com/alexgor">http://blogs.msdn.com/alexgor</a>Mon, 06 Jul 2009 16:26:14 Z2009-07-06T16:26:14Z