0

Hi, I've got 2 forms, after click on the button I'm hiding first and showing second..
How to put the second form to the same location as first one?
I've tried:

        MMenu m = new MMenu(); // MMenu is the first form
        this.Width = m.Width; //Width and Height lines are working OK.
        this.Height = m.Height;
        this.Left = m.Left; //These two are not. I have already tried this.Location = m.Location - no success
        this.Top = m.Top;

Thanks for you help :)

1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by desup
0

I have already solved it myself, problem was, that I need to Show second form first and then set its Position :)

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.