How to create a context menu in C#

前端 未结 3 740

I want to create a context menu using C# that will display next to the node similar to what happens here in Visual Studio:

相关标签:
3条回答
  • 2021-01-21 03:59

    You should set up treeView1.ContextMenu instead of the approach you're taking.

    0 讨论(0)
  • 2021-01-21 04:08

    Why not simply use Form.ShowDialog?

    From MSDN:

    Form.ShowDialog Method

    Shows the form as a modal dialog box.

    0 讨论(0)
  • 2021-01-21 04:16

    You should read and try ContextMenu control of c#. I think it will resolve your problem rather than the technique you used..... Or other than use, myform.showdialog(); with setbounds() methods.

    0 讨论(0)
提交回复
热议问题