Trouble setting Autoscrollposition

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Morten Wennevik

    Trouble setting Autoscrollposition

    I am using autoscroll on a standard windows form of 5000x5000 pixels.
    However, when trying to set the autoscrollposit ion it completely ignores it
    (negative/positive makes no difference)
    I am doing this in page_load. Does that make a difference?
    I want the app to start in the center of the drawing area (2500 - width/2,
    2500 - height/2)

    --
    Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
  • Lee Alexander

    #2
    Re: Trouble setting Autoscrollposit ion

    You need to set the AutoScroll property to true.

    Regards
    Lee
    "Morten Wennevik" <mortenwennevik @hotmail.com> wrote in message
    news:oprtqtnigc ge0n9a@localhos t...[color=blue]
    > I am using autoscroll on a standard windows form of 5000x5000 pixels.
    > However, when trying to set the autoscrollposit ion it completely ignores[/color]
    it[color=blue]
    > (negative/positive makes no difference)
    > I am doing this in page_load. Does that make a difference?
    > I want the app to start in the center of the drawing area (2500 - width/2,
    > 2500 - height/2)
    >
    > --
    > Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/[/color]


    Comment

    • Morten Wennevik

      #3
      Re: Trouble setting Autoscrollposit ion

      On Mon, 11 Aug 2003 15:04:38 +0100, Lee Alexander
      <lee@No_Spam_Pl ease_Digita.com > wrote:
      [color=blue]
      > You need to set the AutoScroll property to true.
      >
      > Regards
      > Lee
      > "Morten Wennevik" <mortenwennevik @hotmail.com> wrote in message
      > news:oprtqtnigc ge0n9a@localhos t...[color=green]
      >> I am using autoscroll on a standard windows form of 5000x5000 pixels.
      >> However, when trying to set the autoscrollposit ion it completely ignores[/color]
      > it[color=green]
      >> (negative/positive makes no difference)
      >> I am doing this in page_load. Does that make a difference?
      >> I want the app to start in the center of the drawing area (2500 -
      >> width/2,
      >> 2500 - height/2)
      >>
      >> -- Using M2, Opera's revolutionary e-mail client:
      >> http://www.opera.com/m2/[/color]
      >
      >
      >[/color]

      No, the autoscroll property is already set, I use autoscrolling in another
      procedure to paint the background correctly.

      --
      Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

      Comment

      • Martin Blissett

        #4
        Re: Trouble setting Autoscrollposit ion

        Hello,
        I have recently experienced the same problem. A temporary work-around is
        to assign the AutoScrollPosit ion during or after the Paint event.
        I hope this helps.
        Regards,
        Martin

        *** Sent via Developersdex http://www.developersdex.com ***
        Don't just participate in USENET...get rewarded for it!

        Comment

        Working...