Scrollable Lable.

  • Thread starter Thread starter mgrd18k
  • Start date Start date
M

mgrd18k

Hello,

I want to create the label control which can scroll.
Scrolling was realizable by putting in a label into a panel control.

ex) label is in a panel.

private void vScrollBar1_ValueChanged(object sender, System.EventArgs e) {
this.label.Top = -this.vScrollBar.Value;
}

However, Since the text displayed on a label is not decided at the time of a
design,
I want to adjust according to the text which displays the height of a label
at the time of execution.

Is there any method of finding the height of the optimal label for
displaying a text?

I want to acquire the suitable height of label control required to display a
text.

Any suggestions?
Thanks in advance,
Hirotaka.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top