Runtime Error '424' object required

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • santhanalakshmi
    New Member
    • May 2009
    • 147

    Runtime Error '424' object required

    Hi,

    I need vertical scroll bar in my form.So i added this code in my existing code.I taken this code from the net.

    Code:
     [B]picWindow.Left = 0[/B](In this line i am facing an error Run-time error '424' Object Required.
        picWindow.Width = Me.Width - VScroll1.Width
        
        VScroll1.Height = picWindow.Height
        VScroll1.Max = picI_Scroll.Height - picWindow.Height
        VScroll1.SmallChange = 100
        VScroll1.LargeChange = picWindow.Height
        VScroll1.Left = Me.Width - VScroll1.Width - 60
        VScroll1.Top = 0
        
        picI_Scroll.Left = 0
        picI_Scroll.Width = picWindow.Width

    Please try to sort out my problem. I need coding for the Vertical Scroll bar in my VB form.

    Thanks in advance
  • Guido Geurs
    Recognized Expert Contributor
    • Oct 2009
    • 767

    #2
    "picWindow. Left = 0" seems to be OK.
    IF ! "picWindow" is the right name of the object ?

    Is it possible to attach Your files in BYTES if it is not solved ?

    Comment

    • santhanalakshmi
      New Member
      • May 2009
      • 147

      #3
      hi,
      how to attach my vb files.

      Comment

      • Guido Geurs
        Recognized Expert Contributor
        • Oct 2009
        • 767

        #4
        See attached ZIP with DOC and PDF.
        Attached Files

        Comment

        Working...