如何正确重命名 SplitContainer WinForms 控件及其面板?

发布于 2024-08-31 19:09:19 字数 231 浏览 2 评论 0原文

我已在表单上放置了一个拆分容器,并希望将其及其面板重命名为有意义的名称(因为我将在此表单上添加更多 SplitContainer)。但是当我将 splitContainer1 重命名为 mainSplitContainer 时,它的面板仍然命名为 splitContainer1.Panel1 和 splitContainer1.Panel2 (虽然我已经没有名为 splitContainer1 的对象),但我找不到解决此问题的方法。你认识路吗?

I've placed a split container on a form and want to rename it and its panels to something meaningful (as I am going to add more SplitContainers on this form). Butwhen I rename splitContainer1 to mainSplitContainer, its panels are still named splitContainer1.Panel1 and splitContainer1.Panel2 (while i already have no object called splitContainer1) and I can't find a way to fix this. Do you know the way?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

初雪 2024-09-07 19:09:19

您无法重命名面板,因为这些是属性而不是嵌入控件。

You can't rename panels, because these are properties not embedded controls.

雨的味道风的声音 2024-09-07 19:09:19

您可以使用全局搜索和替换。可通过 [Ctrl] + [Shift] + [H] 访问

You could use a global search and replace. This is accessed by [Ctrl] + [Shift] + [H]

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文