Combo box help please

Posts 1–6 of 6 · Page 1 of 1
Combo box help please
I need some one to help me with the daym combo box's in a ca account maker not asking for much and no

Code:
Form1.WebBrowser1.Document.GetElementById("month").SetAttribute("value", Form1.ComboBox2.Text)
Form1.WebBrowser1.Document.GetElementById("day").SetAttribute("value", Form1.ComboBox1.Text)

Does not work for me thanks kazi
That's because you need to actually find the ID of the element -.-
Quote Originally Posted by Lolland View Post
That's because you need to actually find the ID of the element -.-
lol i put the ddlBirthMonth, ddlBirthDay, did it about 6 times
Quote Originally Posted by kaziboy View Post
lol i put the ddlBirthMonth, ddlBirthDay, did it about 6 times
is it on a button?, if u need help this is like one of things im good @ in vb.net(element id's.) but like tell me the site and i'll make a code for u.
Site is Ca na code should look like this

Code:
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
        Me.WebBrowser1.Document.GetElementById("ddlBirthMonth").SetAttribute("value", Me.ComboBox1.Text)

    End Sub
coding in vb2010 now my problem is even if i add that getelementid it shows nuthing in the combo box when i use the account maker
Quote Originally Posted by kaziboy View Post
Site is Ca na code should look like this

Code:
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
        Me.WebBrowser1.Document.GetElementById("ddlBirthMonth").SetAttribute("value", Me.ComboBox1.Text)

    End Sub
coding in vb2010 now my problem is even if i add that getelementid it shows nuthing in the combo box when i use the account maker
try
Code:
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
        Me.WebBrowser1.Document.GetElementById("ddlBirthMonth").SetAttribute("value", "1")

    End Sub
or
Code:
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
       WebBrowser1.Document.GetElementById("ddlBirthMonth").SetAttribute("value", 'Textbox1.Text make textbox1.text J and make it invisible)

    End Sub
if those dont work i'll actually code that part myself i just got that off the top of my head.
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us