Is it possible to alter the startUpPosition of a form at runtime??
If not, does any one have any idea how I can solve the following problem...
I need a new form to appear in one of two positions, depending on a certain variable...
One position is the bottom right of the screen, the other is the centre of the form's owner. Now I know how to make the form do either one of these by using the startupPosition variable at design time but I can't work out how to change the value at run time (when the variable the position depends on is set)
I thought maybe I could set the startupPosition to manual and then just set the Top and Left values of the form in the correct places but I don't know how to make the form appear in the center of the form's owner using Top and Left!
I have been looking for hours - please help!!!
Jennifer
If not, does any one have any idea how I can solve the following problem...
I need a new form to appear in one of two positions, depending on a certain variable...
One position is the bottom right of the screen, the other is the centre of the form's owner. Now I know how to make the form do either one of these by using the startupPosition variable at design time but I can't work out how to change the value at run time (when the variable the position depends on is set)
I thought maybe I could set the startupPosition to manual and then just set the Top and Left values of the form in the correct places but I don't know how to make the form appear in the center of the form's owner using Top and Left!
I have been looking for hours - please help!!!
Jennifer