C# 无法将顶级控件添加到控件 ContextMenuStrip控件动态添加到窗体
ContextMenuStripcm=newContextMenuStrip();cm.Text="hello";cm.Show(MousePosition.X,Mous...
ContextMenuStrip cm = new ContextMenuStrip();
cm.Text = "hello";
cm.Show(MousePosition.X, MousePosition.Y);
this.TopLevel = false;
this.Controls.Add(cm); 展开
cm.Text = "hello";
cm.Show(MousePosition.X, MousePosition.Y);
this.TopLevel = false;
this.Controls.Add(cm); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询