Hello Programmers
I've build a pretty nice program.
Everything works rigth but 1 panel is loaded 2 times, that looks stupid.
Everything gets build up. and its broken and loaded again. Then its good.
How can i handel that?
My code:
I've build a pretty nice program.
Everything works rigth but 1 panel is loaded 2 times, that looks stupid.
Everything gets build up. and its broken and loaded again. Then its good.
How can i handel that?
My code:
Code:
private void listBar1_ItemClicked(object sender, vbAccelerator.Components.ListBarControl.ItemClickedEventArgs e)
{
if (e.MouseButton == MouseButtons.Left)
{
panel3.Controls.Clear();
if (e.Item.IconIndex == 0)
{
NieuwFactuur myCtrl = new NieuwFactuur();
panel3.Controls.Add(myCtrl);
}
}
}