Click to See Complete Forum and Search --> : autoresize form w/ center


spritian
August 5th, 2001, 10:52 PM
Im writing a backend client to real producer plus, but I need to figure out how to resize the form when the real producer video window changes (ie 160x120 is default, but can change to 256x192 and 320x240) ... what I want to do is center it, but if it hits 320x240 it will keep it center, and just increase the size of the form... any ideas? thanks a bunch!

Spectre
August 7th, 2001, 06:17 AM
Once the form is set to the new size do...

Top = (Screen.Height - Height) \ 2
Left = (Screen.Width - Width) \ 2




Hope this helps.
Spectre