Resize label based on contents

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Matthew (turn.deletethis_at_alltel.net)
Date: 11/13/04


Date: Fri, 12 Nov 2004 19:45:48 -0500

I have a label that displays the output of my program. I want to make the
label very close to the size of the text it contains. The problem is the
text changes.
So, can I dynamically resize the label based on its contents?
Note: the font size changes as well.

Thank you,

Matthew



Relevant Pages

  • Re: Label not display correctly
    ... > Started in safe mode and the label is displaying correctly in safe mode, ... >it appears it is a driver problem. ... >>Font: Times New Roman ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Can I change the font size in MsgBox
    ... My version of Excel does not mention "userform" in the help file, but I have seen the word before. ... I couldn't find any way to change the font on either a lable or an edit box. ... "Nick Hodge" wrote in message ... Rather than using a built in MsgBox you could build a userform with a label and commandbuttons. ...
    (microsoft.public.excel)
  • Re: Excel chart help!!!!!! Please!!!!
    ... and drivers, screen zoom, and the planets' orbits. ... consolation is that usually the entire label prints fine. ... Short of reinstalling video drivers and mucking with monitor settings ... If I change the font size of the ...
    (microsoft.public.excel.misc)
  • Re: Y-Axis Label
    ... New monitor? ... factor, font and font size, and perhaps other undefinables. ... It has occurred since at least Excel ... the label prints fine (nothing ...
    (microsoft.public.excel.charting)
  • Re: need info on GUI class libraries....
    ... > With the default look&feel the label and component texts ... > proportions if you change the font, ... > dimension and honors the platform's minimum size for buttons. ...
    (comp.lang.java.gui)