Windows Develop Bookmark and Share   
 index > Windows Forms General > label
 

label

I would like to see the text of my label even when the text exceeds the length of the label may be for example by increasing the property "Height" of my label or using a "SplitContainer"
you have a solution for my problem please?
Co2r  Monday, November 10, 2008 5:19 PM
nobugz  Monday, November 10, 2008 8:20 PM
The resizeLabel() method changes the label size. That triggers OnSizeChanged() which calls resizeLabel() again. Which changes the label size, and triggers OnSizeChanged() again. Etcetera. This will eventually crash the program with a stack overflow exception. mGrowing stops this.
nobugz  Monday, November 10, 2008 10:05 PM
nobugz  Monday, November 10, 2008 8:20 PM
thank you, but in the code, what's the use of "mGrowing"
Co2r  Monday, November 10, 2008 9:48 PM
The resizeLabel() method changes the label size. That triggers OnSizeChanged() which calls resizeLabel() again. Which changes the label size, and triggers OnSizeChanged() again. Etcetera. This will eventually crash the program with a stack overflow exception. mGrowing stops this.
nobugz  Monday, November 10, 2008 10:05 PM
thank you very much for your answers, but there is an error "if (mGrowing) return;" but "mGrowing" is not initialized.
initially it must be put to "false" ?
Co2r  Monday, November 10, 2008 11:21 PM
sorry it's already false;
thank you
Co2r  Tuesday, November 11, 2008 1:38 AM

You can use google to search for other answers

Custom Search

More Threads

• Best way to do HTML reporting?
• Convert Text to number and place decimal point after 2 digit
• Printing and Scaling
• Problems getting printer status
• oleDbDataAdapter, datasets, and multiple tables
• How to display Text Value in a ToolStripComboBox control?
• Tree view control duplicating itself
• A dotNET control similar to Image
• using usercontrols
• Question about accessing properties, methods from a user control