Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PanelBox

Status
Not open for further replies.

BobBob10

Programmer
Apr 24, 2005
57
GB
Hi I have a panel box which dynamically adds labels at run time. However, the panel display is always at the top.

When I add labels I set application.doevents so the user can see the labels being drawn.

However I want the user to be able to view the bottom of the panel, maybe something like this

Code:
Me.panelMain.Select = Me.panelMain.Height
However, this doesn't work.

Any ideas?

Cheers Bob
 
Take a look at:

Me.panelMain.ScrollControlIntoView(LabelName)
 
doesn't work the labels jump out of position and to the bottom of the panel.

This doesn't work either:

Code:
Me.panelMain.AutoScrollPosition = New Point(Me.panelMain.AutoScrollPosition.X, 0 - yPos)

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top