W
What To Do
Hi All,
Firstly, im a real newbie to C# so appologies for asking what might be a
very basic question.
Basically im using DotNetBar and have a Ribbon form. On my Ribbon form, I
have a ribbon Bar, With 5 buttons. I also have a a panel on my Main form
(pnlMainMenu) I have serveral user controls also.
When a user clicks on a button I would like it to display the user control
in the Panel.
So far i have the following code:-
private void btnComplaints_Click(object sender, EventArgs e)
{
pnlMainMenu.Controls.Clear();
TestApp.User_Controls.uctComplaints = new UserControl(Complaints);
Complaints.TopLevel = true;
pnlMainMenu.Controls.Add(Complaints);
Complaints.Show();
}
Could somebody be kind enought to point me in the right direction, or where
im going wrong?
I have Googled but cant seem to find anything.
Many Thanks
Simon
Firstly, im a real newbie to C# so appologies for asking what might be a
very basic question.
Basically im using DotNetBar and have a Ribbon form. On my Ribbon form, I
have a ribbon Bar, With 5 buttons. I also have a a panel on my Main form
(pnlMainMenu) I have serveral user controls also.
When a user clicks on a button I would like it to display the user control
in the Panel.
So far i have the following code:-
private void btnComplaints_Click(object sender, EventArgs e)
{
pnlMainMenu.Controls.Clear();
TestApp.User_Controls.uctComplaints = new UserControl(Complaints);
Complaints.TopLevel = true;
pnlMainMenu.Controls.Add(Complaints);
Complaints.Show();
}
Could somebody be kind enought to point me in the right direction, or where
im going wrong?
I have Googled but cant seem to find anything.
Many Thanks
Simon