System.Windows.Forms.GroupBox 文本丢失 [英] System.Windows.Forms.GroupBox text is missing
问题描述
我正在使用 Visual Studio 2005 (C#),在我的一个 Windows 窗体中,我有几个文本框.我已将文本框放在System.Windows.Forms.GroupBox"的实例中,因为我想使用 GroupBox 成员Text"来告诉文本框的用途(它显示为靠近左上角的标签)环绕 GroupBox 的线).
I am working with Visual Studio 2005 (C#) and in one of my windows forms I have a couple of textboxes. I have placed the textboxes inside instances of 'System.Windows.Forms.GroupBox' because I want to use the GroupBox member 'Text' to tell what the textboxes are for (it shows up as a label near the top left corner of the fine line that encircles the GroupBox).
我的问题是这些标签之一突然消失了.当我在设计器中使用表单时它存在,但是当我运行程序并且表单出现时,标签消失了.
My problem is that suddenly one of these labels just disappeared. It is present when I work with the form in the designer but when I run the program and the form appears the label is gone.
感谢您提供有关此问题的任何信息!
Thank you for any information on this issue!
推荐答案
检查以确保您没有将 GroupBox 的 .Text 属性设置为空字符串.
Check to be sure you're not setting the .Text property of the GroupBox to an empty string.
这篇关于System.Windows.Forms.GroupBox 文本丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!