9 Replies - 1366 Views - Last Post: 06 July 2013 - 04:12 AM Rate Topic: -----

#1 iwanttolearn  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 84
  • Joined: 13-March 12

help selecting combobox on vb.net webbrowser control

Posted 30 June 2013 - 10:53 PM

here is the website
http://www.afreesms.com/freesms

here is my codes
using vb.net and webbrowser control
wb name of my webbrowser control

to select item on combobox and its working
Try
                Dim element As HtmlElement = wb.document.GetElementById("countrycode")
                Dim month As HtmlElement = element.GetElementsByTagName("option").Cast(Of HtmlElement).First(Function(el) el.GetAttribute("value") = "PH")
                month.SetAttribute("selected", "true")
            Catch ex As Exception
                MsgBox(ex.StackTrace)
            End Try


here is the output

Attached Image

but using a webbrowser installed on pc i get this result

Attached Image
the problem is when using my program. it doesnt hide the
sender id: country code: and mobile number

and it doesnt add the country code + 63 below the combo box after choosing the country


any idea guys? what additional codes i need to add on my codes

Is This A Good Question/Topic? 0
  • +

Replies To: help selecting combobox on vb.net webbrowser control

#2 lar3ry  Icon User is offline

  • Coding Geezer
  • member icon

Reputation: 310
  • View blog
  • Posts: 1,290
  • Joined: 12-September 12

Re: help selecting combobox on vb.net webbrowser control

Posted 01 July 2013 - 11:27 AM

Quote

the problem is when using my program. it doesnt hide the
sender id: country code: and mobile number
and it doesnt add the country code + 63 below the combo box after choosing the country

When using FireFox, when I select "Philippines" by typing in the first few characters, it also doesn't hide that text or add the country code, but when I click on Mobile number, it does those things.

This suggest to me that you need to actually do the Select on the appropriate country name, or move on to the Mobile Number text box and send the number to it.

Hope this helps.
Was This Post Helpful? 0
  • +
  • -

#3 iwanttolearn  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 84
  • Joined: 13-March 12

Re: help selecting combobox on vb.net webbrowser control

Posted 01 July 2013 - 04:01 PM

but i tried in on firefox sir. after selecting philippines it does the things i want. or even google chrome.
Was This Post Helpful? 0
  • +
  • -

#4 lar3ry  Icon User is offline

  • Coding Geezer
  • member icon

Reputation: 310
  • View blog
  • Posts: 1,290
  • Joined: 12-September 12

Re: help selecting combobox on vb.net webbrowser control

Posted 01 July 2013 - 04:38 PM

View Postiwanttolearn, on 01 July 2013 - 05:01 PM, said:

but i tried in on firefox sir. after selecting philippines it does the things i want. or even google chrome.

You misunderstand.

With FireFox, I did not click on the drop-down arrow and select "Philippines". I clicked on the text area of the combobox, then typed "Phil". At that time, it did not fill in the country code, nor did it hde the text ner the bottom.

It is only after leaving the combobox (losing focus) that these things happen.

That being said, I just now checked using the Webbrowser control, and even manually, it seems not to work properly. This is likely because the .Net WebBrowser control is just a subset of Internet Explorer, and does not have some feature needed for that task.
Was This Post Helpful? 0
  • +
  • -

#5 iwanttolearn  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 84
  • Joined: 13-March 12

Re: help selecting combobox on vb.net webbrowser control

Posted 01 July 2013 - 09:01 PM

thanks for that sir. im sorry i misunderstand it.

so webbrowser control cant do the things i want to do sir?
do you know an alternative for webbrowser control sir? i've searched before posting but i dont find any
Was This Post Helpful? 0
  • +
  • -

#6 iwanttolearn  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 84
  • Joined: 13-March 12

Re: help selecting combobox on vb.net webbrowser control

Posted 01 July 2013 - 11:13 PM

focus on the combobox before selecting and removefocus after selecting then focus on the textbox for mobile number doesnt work :helpsmilie:
Was This Post Helpful? 0
  • +
  • -

#7 lar3ry  Icon User is offline

  • Coding Geezer
  • member icon

Reputation: 310
  • View blog
  • Posts: 1,290
  • Joined: 12-September 12

Re: help selecting combobox on vb.net webbrowser control

Posted 02 July 2013 - 05:46 AM

View Postiwanttolearn, on 01 July 2013 - 10:01 PM, said:

thanks for that sir. im sorry i misunderstand it.

No problem... and please, you don't need to call me "sir".

Quote

so webbrowser control cant do the things i want to do sir?
do you know an alternative for webbrowser control sir? i've searched before posting but i dont find any

You might want to take a look at the GeckoFX Component, an open-source library written for .Net applications. It's based on FireFox, and is more advanced than Microsoft's WebBrowser control. I haven't use it, but I hear good things about it.

This post has been edited by lar3ry: 02 July 2013 - 05:47 AM

Was This Post Helpful? 0
  • +
  • -

#8 iwanttolearn  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 84
  • Joined: 13-March 12

Re: help selecting combobox on vb.net webbrowser control

Posted 02 July 2013 - 06:06 AM

ok. thanks for the link. thanks for you're time. im gonna try it.
Was This Post Helpful? 0
  • +
  • -

#9 iwanttolearn  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 84
  • Joined: 13-March 12

Re: help selecting combobox on vb.net webbrowser control

Posted 03 July 2013 - 03:24 AM

i tried it. and to hard to code because i cant find any advance tutorial about it ( i tried coding for 5 hours). i think its on my code not on IE because i tried on IE installed on my computer at its working. after selecting the country it does the task i want.

can i post the page source of the site? but its too long.
Was This Post Helpful? 0
  • +
  • -

#10 iwanttolearn  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 84
  • Joined: 13-March 12

Re: help selecting combobox on vb.net webbrowser control

Posted 06 July 2013 - 04:12 AM

can someone help me :helpsmilie:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1