VSPackage 中的 ToolStripContainer
我有一个 VSPackage,其中有几个工具窗口。正如您所知,工具窗口派生自一个名为 WindowPane 的类,该类与标准 Form 类完全不同。
在我的工具窗口中,我在 ToolStripContainer 中托管了一个 ToolStrip。我想要做的是保留 ToolStrip 相对于其父 ToolStripContainer 的位置信息。我查看了 ToolStripManager.SaveSettings 和 ToolStripManager.LoadSettings,但它们需要 Form 作为参数。
还有其他人尝试过这样做吗?
谢谢, 艾伦
I have a VSPackage that has a couple of tool windows in it. As you will know tool windows derive from a class called WindowPane which is completely different from the standard Form class.
In my tool windows I have a ToolStrip hosted within a ToolStripContainer. What I would like to do is retain the positional information for the ToolStrip relative to its parent ToolStripContainer. I have looked at ToolStripManager.SaveSettings and ToolStripManager.LoadSettings but these require a Form as a parameter.
Has anyone else tried to do this?
Thanks,
Alan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论