Results 1 to 4 of 4

Thread: [RESOLVED] VB6, Cannot jump to x because is hidden

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2007
    Posts
    27

    Resolved [RESOLVED] VB6, Cannot jump to x because is hidden

    Hi,

    My first post, new to VB and to the forum.

    I am working on a old vb application developed by someone else but I got to this error on a class module while trying to undertand and get a definition for this.

    Cannot jump to 'pbDataImport' because is hidden.

    Code:
    DoEvents
        frmImport.pbDataImport.Value = 1000
    Why is this? and what would the 'pbDataImport' used for. is set to different values at in different places.
    Code:
    Private Sub Form_Load()
    On Error GoTo Err_Form_Load
    Dim rcdReportDates As New ADODB.Recordset
    
        Call ClearMessages
        optNew.Value = True
        optRepeat.Value = Not optNew.Value
        pbDataImport.Min = 0
        pbDataImport.Max = 1000
        pbDataImport.Value = 0
        
        frmImport.Left = 50
        frmImport.Top = 50
        
        'Need to populate the Report Date DataCombo with values
        Connect
        Set rcdReportDates = svr_Query(cnCDior, "spReportDateGet")
        SwitchToClient rcdReportDates
        fPopulateDataCombo rcdReportDates, Me.cbointReportDateURN, "intReportDateURN", "txtReportDate"
        Disconnect
        
    Exit_Form_Load:
        Exit Sub
        
    Err_Form_Load:
        Resume Exit_Form_Load
    End Sub
    thanks
    luta

  2. #2
    Frenzied Member
    Join Date
    Jul 2007
    Posts
    1,306

    Re: VB6, Cannot jump to x because is hidden

    Welcome To the forum


    Guessing from the name it could be a Progress Bar Control.
    And these lines

    pbDataImport.Min = 0
    pbDataImport.Max = 1000
    pbDataImport.Value = 0

    makes it more prominent. But could be anything else. Try to get the definition of Min, Max or Value. You cant get the difintion of the ProgressBar but you can get the difnitions of its properties.

    IIF(Post.Rate > 0 , , )

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: VB6, Cannot jump to x because is hidden

    Yes, its a progressbar named pbDataImport residing on form frmImport.
    If you go to the Object Browser you will be able to see all of its properties and mehtods etc. by searching for progressbar.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Oct 2007
    Posts
    27

    Re: VB6, Cannot jump to x because is hidden

    thanks a lot for all your help
    luta

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width