Results 1 to 23 of 23

Thread: [RESOLVED] How To Load In Combo Box ?

Hybrid View

  1. #1
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: How To Load In Combo Box ?

    they are strings, not variables
    WebBrowser1.Document.All(cons).Value = "starts"
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  2. #2

    Thread Starter
    Lively Member _-Rs-_'s Avatar
    Join Date
    Aug 2009
    Posts
    84

    Re: How To Load In Combo Box ?

    [B]
    Quote Originally Posted by westconn1 View Post
    they are strings, not variables
    WebBrowser1.Document.All(cons).Value = "starts"
    Newbie Here Bro I Understand they are strings Now What Do I Do With Them
    Sorry If I Am taking Too Much Time Of Yours Guys
    Last edited by _-Rs-_; Sep 9th, 2009 at 08:49 AM.

  3. #3
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065

    Re: How To Load In Combo Box ?

    Quote Originally Posted by _-Rs-_ View Post

    Newbie Here Bro Ok I Understand they are strings Now What Do I Do With Them Ware To Put Code In Private Sub Combo2_Change Or Command1_Click Or Form_Load
    i would use the combo Validate... - this runs when the control focus is lost...
    Wayne

  4. #4

    Thread Starter
    Lively Member _-Rs-_'s Avatar
    Join Date
    Aug 2009
    Posts
    84

    Smile Re: How To Load In Combo Box ?

    Quote Originally Posted by wpearsall View Post
    i would use the combo Validate... - this runs when the control focus is lost...
    combo Validate Hmmm Bro Can You Make An example Source
    With That Site http://www.apcentralpower.com/search/search_hyd2.jsp
    It will Give Me A Good Idea About What Your Saying

    peace

  5. #5
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065

    Re: How To Load In Combo Box ?

    Quote Originally Posted by _-Rs-_ View Post


    combo Validate Hmmm Bro Can You Make An example Source
    With That Site http://www.apcentralpower.com/search/search_hyd2.jsp
    It will Give Me A Good Idea About What Your Saying

    peace
    Code:
    Private Sub Combo1_Validate(Cancel As Boolean)
        Select Case Combo1.ListIndex
            Case 0:
                WebBrowser1.Document.All("cons").Value = "starts"
                
            Case 1:
                WebBrowser1.Document.All("cons").Value = "contains"
            
            Case 2:
                WebBrowser1.Document.All("cons").Value = "exactly"
            
        End Select
    End Sub
    Wayne

  6. #6

    Thread Starter
    Lively Member _-Rs-_'s Avatar
    Join Date
    Aug 2009
    Posts
    84

    Smile Re: How To Load In Combo Box ?

    Quote Originally Posted by wpearsall View Post
    Code:
    Private Sub Combo1_Validate(Cancel As Boolean)
        Select Case Combo1.ListIndex
            Case 0:
                WebBrowser1.Document.All("cons").Value = "starts"
                
            Case 1:
                WebBrowser1.Document.All("cons").Value = "contains"
            
            Case 2:
                WebBrowser1.Document.All("cons").Value = "exactly"
            
        End Select
    End Sub
    Thank You So Much Bro It Worked Keep Rocking
    Last edited by _-Rs-_; Sep 9th, 2009 at 10:19 AM.

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