Runtime error 5 at vb6.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sunilkds
    New Member
    • Feb 2008
    • 16

    Runtime error 5 at vb6.0

    I got Runtime error 5(Invalid Procedure Call...) when executing this code,

    combobox1.SetFo cus

    What is the solution for fix this bug ............... ....?
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    please rechek which line is throwing the error. are you using an control array ?

    Comment

    • leannsmarie
      New Member
      • Oct 2008
      • 5

      #3
      Whenever Im setting a focus I use an empty set of parentheses after. Like this:

      combobox1.SetFo cus()

      I know that makes it a function with no values but it works.
      I also dont know if that will help any but its worth a shot. Without seeing more of your code its kind of hard to say what the problem may be anyway.

      Comment

      • vishal anand
        New Member
        • Sep 2013
        • 7

        #4
        what is the style of your combobox1? Then do please send your full coding. My doudt is are you using adodb?

        Comment

        Working...