LOFRANK Posted November 23, 2004 Posted November 23, 2004 hi, i have a panel and i put in this panel some labels by code at run-time. panel1.autoscroll=true dim l as new label l.text="11" l.autosize=true l.top=-10 panel1.controls.add(l) why no scroll? Quote live any day of your life like your last.
Administrators PlausiblyDamp Posted November 23, 2004 Administrators Posted November 23, 2004 How big is the panel? Is the control you are adding visible within the panel? If it is fully visible then you won't need to scroll to see it; try positioning the label outside of the visible portion of the panel. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
LOFRANK Posted November 23, 2004 Author Posted November 23, 2004 the label is visible, and in position -10,-10 so i found no scroll bars visible in the panel... but just for negative positions... Quote live any day of your life like your last.
*Experts* DiverDan Posted November 25, 2004 *Experts* Posted November 25, 2004 You'll also need to set the panel's AutoScrollMinSize along with setting the AutoScroll properity to True. Panel1.AutoScroll = True Panel1.AutoScrollMinSize = New Size(Panel1.Width, Panel1.Height) Of course you can set the minumum size to anything you need. As a note: Is the correct abbreviation for minumum min. (as used for minute) or mim. (as used for minimum)? Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.