Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: problem with scrollbars for scrolling picturebox


Message #1 by "Pierre du Toit" <greywacke@f...> on Wed, 4 Dec 2002 08:53:01
hello,

http://greywacke.co.za/scrollpic.zip is the project source with a compiled 
exe

my main problem is when i trigger the form_activate (restoring, switching 
to, etc) here is that sub with a description of my problem.

Private Sub Form_Activate()
    ' here is my problem i need to graphically & _
      have the scrollbars updated on this event & _
      but it doesnt work have a look at exe and & _
      ull see why i need this to happen. if you & _
      scroll so that the scrollbars are at 100 and minimize, & _
      when you restore again it draws the picture & _
      starting at 0 but the scrollbar still shows 100
    HScroll1.Value = 0
    VScroll1.Value = 0
    HScroll1.Refresh
    VScroll1.Refresh
End Sub

  Return to Index