C#:修改一个tablelayoutpanel时,另一个tablelayoutpanel中的控件消失
这两个 tableLayoutPanel 没有任何共同点。
在第一个中,添加特定行只会使第二个 tableLayoutPanel 的所有标签(而不是其他控件)消失!
有人遇到过这个问题吗?解决了吗?
The two tableLayoutPanels have nothing in common.
In the first one, adding a specific row just makes all the Labels (and not the others controls) of the second tableLayoutPanel dissapear!
Has anyone encountered this problem? Solved it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,我不止一次遇到这个问题。它与资源编写器有关。如果您有两个不同的 TLP,修改一个 TLP 实际上会覆盖另一个 TLP 的设置(保存在 *.resx 文件中)。
我半年前用谷歌搜索了一下,似乎很少有人遇到这个问题 - 它发生在 VS 2005 SP3 和 VS 2008 SP2 中的 IIRC。
我认为除了保留 resx 文件的备份副本并在进行更改后合并它之外,没有什么可以做的。或者升级到VS 2010,据说没有这个缺陷(但我没有实际测试过,所以我可能完全错了)。
Yes, I encountered this problem more than once. It regards to resource writer. If you have two different TLP's, modifying one will actually overwrite settings (which are kept in *.resx file) for another.
I googled it like half year ago and it seems that there are few people who had this problem - it happens IIRC in VS 2005 SP3 and VS 2008 SP2.
I don't think there is anything that could be done except preserving backup copy of the resx file and merging it after making the changes. Or upgrading to VS 2010 that allegedly does not have this defect (but I haven't actually tested it, so I might be totally wrong).