Scroll Bar

  • Thread starter Thread starter Arda Coskun
  • Start date Start date
Thanks Ali, it worked.

I also have a form that has long text boxes, how can I make it scrolling?
Since there is no get focus event.

Thanks again.
 
You can add the GotFocus event handler to text boxes in the compact
framework. But if you just want to add a scroll bar to the text box, you can
do so by just setting the ScrollBars property for that text box.

Ali Gardezi
 
Sorry, I typed wrong, not textboxes I wanted to mean long texts in labels or
many labels together. How can I add them a scroll option.

Thanks again,

Arda
 
Thanks Ali, I solved it.

Arda

Ali said:
If the form just contains labels and no other controls, you could handle the
key down event for the form and check for Keys.Up and Keys.Down and
accordingly call the scrolling code with the appropriate label control as the
argument. You will have to keep track which label is on screen at the moment.

Ali Gardezi
 
Back
Top