Re: Scroll a Panel in code ..

From: Dr Screwup (nospam_at_no_thanks.com)
Date: 09/27/04


Date: Mon, 27 Sep 2004 07:34:18 -0500

What's in the panel? Controls or a picture? If they are controls you can
move them yourself .

Dim c as Control
For each c in Panel1.Controls
     ' New Location
    c.Location = 'Wherever you want it
Next

If it's a picture just draw part that needs to be seen.

"n. Smith" <nixdk@yahoo.dk> wrote in message
news:t7lfl0992gfgunjuugogqdkiofdp3leari@4ax.com...
>
> Can anyone help here? I need to scroll a panel in code, because I
> don't want to display the scroll bar on screen.
>
> Any suggestions.
>
> N.



Relevant Pages

  • RE: Repost: Controls are unreachable after scroll and form resize.
    ... form are visible and there is no scroll bars on the panel. ... some of the controls on the panel are placed ... Then if I resize the child form to the previous size ... the same as the locations after I drag the scroll bar just now. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: Repost: Controls are unreachable after scroll and form resize.
    ... form are visible and there is no scroll bars on the panel. ... some of the controls on the panel are placed ... Then if I resize the child form to the previous size ... the same as the locations after I drag the scroll bar just now. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: Scroll Bar
    ... In order to use a scroll bar on a form on the smartphone, ... the controls for that form onto a panel. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: This will do it
    ... I didnt check this with Autoscroll set to true, ... because you can hide the scroll bars by dragging another panel to obscure ... >>> scroll value to a hidden scroll bar. ... >>> Then I can maybe track the display of the first and last controls by ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Zoom or expand a chart
    ... If you have a chart type which is not supported by charting controls ... I have a picture box inside a second picture box. ... The first scroll bar changes the 'left' ...
    (microsoft.public.vb.general.discussion)