scrolling a user control

From: Steve Bugden (SteveBugden_at_discussions.microsoft.com)
Date: 10/15/04


Date: Fri, 15 Oct 2004 14:19:08 -0700

Hi,

I have created a user control which I then add standard controls to
prgramatically i.e. picture box, text box etc.

I'm just wondering if it is possible to scroll to given position in the
scrollable region? So lets say the control has a height of 300 pixels and the
scrollable height is 1000 pixels then I'd like to be able to just make pixel
500 appear in the top left of the controls visible area.

If this isn't possible what alternatives are there for scrolling a user
control programatically.

Many thanks in advance for any answers.

Best Regards,

Steve.



Relevant Pages

  • Re: Need to use VBA to put image on a form
    ... Earl Kiosterud ... the OP can place an Image control, ... this way the form's native ScrollBars can be used to scroll the contents of the Image ... Note: Some folks prefer bottom-posting. ...
    (microsoft.public.access.formscoding)
  • Re: Make a user control floatable?
    ... You have to get the position relative to the top of the window. ... I have a user control which I use on all my pages. ... For some long pages the user has to scroll back up to the top of the page ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How do you interactively write to a CEditView Window
    ... When you scroll the ... the window flashes a lot. ... and trying to control the flashing and deal with the user resetting ... note that sizeof() a string will include the NUL character, while what you really want is ...
    (microsoft.public.vc.mfc)
  • Re: Cannot enter edit boxes on CProperty pages
    ... Are you trying to make the propretysheet scroll, ... tab control to switch pages and on a PC an OK button. ... to an edit box with mouse and edit it, nor does it seem tab keyboard ... not on WinCE device ...
    (microsoft.public.vc.mfc)
  • Re: Best Way To Design Form w/Hundreds of Yes/No Fields
    ... picturebox and scroll bars), and after the Dim statements in the form load ... The user can scroll the questions into view, ... but it uses 1 control to ... I'm working on designing a data entry form for a client. ...
    (comp.lang.basic.visual.misc)