label length vary with string.

  • Thread starter Thread starter Cyredith.
  • Start date Start date
C

Cyredith.

I couldn't find a way out. My application requires
generating label component at run-time.
The label holds a string with varied length.

Any suggestion is greatly appreciated.!
 
Hello,

Cyredith. said:
I couldn't find a way out. My application requires
generating label component at run-time.
The label holds a string with varied length.

You may want to set the label's AutoSize property to True.

Regards,
Herfried K. Wagner
 
Hello,

Nak said:
Dim pop As New Label()
pop.AutoSize = True
pop.Text = "Option Strict Off"

Replace the line above with this:

\\\
pop.Text = "Don't use Option Strict Off"
///
pop.Location = New Point(10, 10)
Call Me.Controls.Add(pop)

Regards,
Herfried K. Wagner
 
Back
Top