Reputation: 263
This is a screenshot of what i mean options menu. This is the design i want it to look like but i didn't find any tutorials.
When i click the options toostripmenuitem i want the treeview options menu to show. But i have no idea how to create the treeview menu like the one in the screenshot.
private void optionsToolStripMenuItem_Click(object sender, EventArgs e)
{
TreeNode mainNode = new TreeNode();
mainNode.Name = "mainNode";
mainNode.Text = "Main";
this.treeView1.Nodes.Add(mainNode);
}
Upvotes: 0
Views: 226
Reputation: 2196
to do tis way use different panel for ur setting data design then use mousecickevent to display panel or hide the panel
private void tv_MouseClick(object sender, MouseEventArgs e)
{
if(tvLeft.SelectedNode.Name.Equals("Genral")//Name of Setting
{
Panel1.Show();//keep other panel hide
panal1.BringtoFront();
}
}
Upvotes: 1