none
Visual C# Help Please RRS feed

  • Question

  • I have form1, and panel-shaped frame, and I want to show second form inside this panels when I click button1 how can I do please help. 

    http://i67.tinypic.com/2430zt4.png

    Thursday, December 24, 2015 11:15 PM

Answers

  • Ertugrul,

    Sorry but you have posted to a forum that deals exclusively with questions/issues about customizing and programming Microsoft Project, a project management application. I suggest you re-post to the following forum:

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral

    John

    Friday, December 25, 2015 12:51 AM
  • Hi Ertugrul Cetin,

    Is this a Windows Forms Application?

    You could try to do that.

     private void button1_Click(object sender, EventArgs e)
            {
                ChildForm child = new ChildForm();
                child.TopLevel = false;
                child.Dock = DockStyle.Fill;
                FormBorderStyle = FormBorderStyle.None;     
                panel1.Controls.Add(child);
                child.Show();
            }

    The ChildForm is Form name. you can change the ChilForm to other controls.

    Hope that helps.

    Best regards,

    Lucy_lulu


    Friday, December 25, 2015 3:06 AM

All replies

  • Ertugrul,

    Sorry but you have posted to a forum that deals exclusively with questions/issues about customizing and programming Microsoft Project, a project management application. I suggest you re-post to the following forum:

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral

    John

    Friday, December 25, 2015 12:51 AM
  • Hi Ertugrul Cetin,

    Is this a Windows Forms Application?

    You could try to do that.

     private void button1_Click(object sender, EventArgs e)
            {
                ChildForm child = new ChildForm();
                child.TopLevel = false;
                child.Dock = DockStyle.Fill;
                FormBorderStyle = FormBorderStyle.None;     
                panel1.Controls.Add(child);
                child.Show();
            }

    The ChildForm is Form name. you can change the ChilForm to other controls.

    Hope that helps.

    Best regards,

    Lucy_lulu


    Friday, December 25, 2015 3:06 AM
  • THANK YOU
    Friday, December 25, 2015 10:54 AM
  • THANK YOU I WİLL TRY
    Friday, December 25, 2015 10:54 AM