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
FroglegPosted Feb 5, 2014, 3:50 AM
Move panel1 to access panel2 or use a tab control
Steven SandfordPosted Feb 4, 2014, 4:15 PM
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.
FroglegPosted Feb 4, 2014, 2:56 PM
You can either use a tab control or move panel2 to access panel1
Steven SandfordPosted Feb 4, 2014, 3:49 AM
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.
FroglegPosted Feb 4, 2014, 3:15 AM