Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

live any day of your life like your last.
Posted

the label is visible, and in position -10,-10

so i found no scroll bars visible in the panel...

 

but just for negative positions...

live any day of your life like your last.
  • *Experts*
Posted

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)?

Member, in good standing, of the elite fraternity of mentally challenged programmers.

 

Dolphins Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...