I made a test app that has 1 form and 2 panels within it.
I can switch panels with some navigation that I made, however I find that I can now only edit the last panel created. If I select panel 1, and try to insert content into it, it always reverts to panel 2 instead, and puts the content their.
I am using VS 2010 express. How can I edit Panel 1, without moving or deleting Panel 2.
Loading

FroglegRank #1,020 · 1.9K reputationPosted Feb 3, 2014, 10:15 PM EST
Steven Sandford18 reputationPosted Feb 3, 2014, 10:49 PM EST
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TestUserCntrl
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void panel1ToolStripMenuItem_Click(object sender, EventArgs e)
{
panel1.Visible = true;
panel2.Visible = false;
}
private void panel2ToolStripMenuItem_Click(object sender, EventArgs e)
{
panel2.Visible = true;
}
private void panel3ToolStripMenuItem_Click(object sender, EventArgs e)
{
}
}
}
Basically this shows my first panel when the form loads, and I can navigate between panels using my menu. Thats easy.
What I have trouble doing is adding controls onto the 1st panel from within the VS 2010 IDE.
Panel 2 is always kept on top in the visual editor, even when trying to send it to back.
FroglegRank #1,020 · 1.9K reputationPosted Feb 4, 2014, 9:56 AM EST
You can either use a tab control or move panel2 to access panel1
Steven Sandford18 reputationPosted Feb 4, 2014, 11:15 AM EST
Could you please expand on the "move panel2 to access panel1".
Do you mean just move it out of the way so I can see panel 1 again? I'm sure this will work, but I would have thought VS would be better than that.
FroglegRank #1,020 · 1.9K reputationPosted Feb 4, 2014, 10:50 PM EST
Move panel1 to access panel2 or use a tab control