0

:'( hi guys hope you can help
i have written a small project used to simulate a cash reg however i have 3 froms on it ,main,checkout and about my problem is that if i move my main form to say left had of screen when i click on checkout or about those forms open in there orginal posisition what i need to know is there anyway of locking these forms to the main form so as nomatter where the main form is on screen the other forms will open on top of it

hope you understand what i m trying to do

thankyou
stephen

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by stephen lowry
0

You could use the multiple-document interface (MDI) in which the forms are a "child" of the "parent" main form, but MDI program can be a pain. Why can't you just use the main form's properties to decide where the other forms should appear? For example, in the Form_Load event of Checkout...

Top = Form1.Top 'add any offset you want
Left = Form1.Left 'again add the desired offset

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.