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 :)

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.