Jump to content
  • Advertisement
Sign in to follow this  
iliak

[.net] Form size based on control

This topic is 3609 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi My application support 2 modes : Full Screen and Windowed. For the windowed mode I think I'll have no problems. For the windowed mode as I render everything in a SimpleOpenGLControl (TaoFramework) I need to put "around" this control a Form. My problem is, how to size the parent Form according to the size of the rendering control ? Is there a FitFromClient() function ?

Share this post


Link to post
Share on other sites
Advertisement
I thing something like "theForm.ClientSize = theControl.Size" should work.

Regards,
Andre

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!