Results 1 to 7 of 7

Thread: [RESOLVED] Fill in combo box

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2003
    Posts
    305

    Resolved [RESOLVED] Fill in combo box

    Hey,how can i fill in combo boxes with specfic data ie my data of birth



    WebBrowser1.Document.All("username").focus
    WebBrowser1.Document.All.username.Value = Text7.Text

    maybe somthing like this this is the source of the webpage for the comboboxes thanks


    HTML Code:
    			<td width="40%" class="cell1"><b>Date of Birth:<font color="#5A00FF" size="1">*</font></b></td>
    			<td class="cell2" width="60%">
    			<select size="1" name="day">
    			<option value="01">1</option>
    <option value="02">2</option>
    <option value="03">3</option>
    <option value="04">4</option>
    <option value="05">5</option>
    <option value="06">6</option>
    <option value="07">7</option>
    <option value="08">8</option>
    <option value="09">9</option>
    <option value="10">10</option>
    <option value="11">11</option>
    <option value="12">12</option>
    <option value="13">13</option>
    <option value="14">14</option>
    <option value="15">15</option>
    <option value="16">16</option>
    <option value="17">17</option>
    <option value="18">18</option>
    <option value="19">19</option>
    <option value="20">20</option>
    <option value="21">21</option>
    <option value="22">22</option>
    <option value="23">23</option>
    <option value="24">24</option>
    <option value="25">25</option>
    <option value="26">26</option>
    <option value="27">27</option>
    <option value="28">28</option>
    <option value="29">29</option>
    <option value="30">30</option>
    <option value="31">31</option>
    
    			</select>
    			<select size="1" name="month">
    			<option value="01">January</option>
    <option value="02">February</option>
    <option value="03">March</option>
    <option value="04">April</option>
    Last edited by Hack; Apr 26th, 2006 at 11:16 AM. Reason: Added [RESOLVED] to thread title and green "resolved" checkmark

  2. #2
    Frenzied Member SeanK's Avatar
    Join Date
    May 2002
    Location
    Boston MA
    Posts
    1,160

    Re: Fill in combo box

    This isn't Visual Basic. Wouldn't you be better off posting in the HTML section?
    Beantown Boy
    Please use [highlight=vb]your code goes in here[/highlight] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.

  3. #3
    eltiT resU motsuC Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Fill in combo box

    can u post the link to the URL..
    its usually pretty easy to do

    webbrowser1.document.all.day.value = 12
    webbrowser1.document.all.month.value = 04
    (could be webbrowser1.document.all.month.value = "April")
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  4. #4
    eltiT resU motsuC Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Fill in combo box

    yes SeanK its VB

    Webbrowser control to fill online form...
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  5. #5
    Frenzied Member SeanK's Avatar
    Join Date
    May 2002
    Location
    Boston MA
    Posts
    1,160

    Re: Fill in combo box

    Quote Originally Posted by Static
    yes SeanK its VB

    Webbrowser control to fill online form...
    This is probably a really stupid question but if you want to fill in an online form, then why don't you go online and fill it out?

    I don't get writing a program to do something you can do without writing a program.
    Beantown Boy
    Please use [highlight=vb]your code goes in here[/highlight] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2003
    Posts
    305

    Re: Fill in combo box

    solved thanks

  7. #7
    eltiT resU motsuC Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Fill in combo box

    Quote Originally Posted by SeanK
    This is probably a really stupid question but if you want to fill in an online form, then why don't you go online and fill it out?

    I don't get writing a program to do something you can do without writing a program.
    there are many uses to automating this...

    Example: I used to work at a company that logged all testing errors on a web based form...
    Solution: since 80% of the info was repeated each entry.. I created a browser that filled it out and saved the repeated data... saved tons of time..

    Example: vbforums..
    I have a webbrowser I created that is used specifically for VBF
    and it automatically logs me in if I am logged out.
    It can also send code to the message textbox... etc
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

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