if(panel1.focused) { panel1 displaying stuff.. } else if (panel2.focused) { panel2 displaying stuff }
if(splitContainer1.Panel1.focused) { splitContainer1.Panel1.Controls.Clear(); Label lbl = (Label)sender; OpenFile(@" " + lbl.Text); var a = new DisplayForm(_file); a.TopLevel = false; a.Visible = true; a.Dock = DockStyle.Fill; a.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; splitContainer1.Panel1.Controls.Add(a); } else if(splitContainer1.Panel2.focused) { splitContainer1.Panel2.Controls.Clear(); Label lbl = (Label)sender; OpenFile(@" " + lbl.Text); var b = new DisplayForm(_file); b.TopLevel = false; b.Visible = true; b.Dock = DockStyle.Fill; b.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; splitContainer1.Panel2.Controls.Add(b); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)