我想在StatusStrip中的ToolStripStatusLabel所在位置显示一个ContextMenuStrip。普通控件有PointToScreen / PointToClient /等,但由于ToolStripStatusLabel是从组件派生的,所以没有。
任何帮助都将不胜感激。
发布于 2009-07-23 03:33:59
查看ToolStripStatusLabel的Bounds属性。像这样使用它来做你需要做的事情:
contextMenuStrip1.Show(statusStrip1, toolStripStatusLabel2.Bounds.X, toolStripStatusLabel2.Bounds.Y); https://stackoverflow.com/questions/1169323
复制相似问题