Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21839

Webbrowser vs. Internet Explorer

$
0
0
Hi there,

I am used to login to websites using following codes invoking internet control tool in vb6.

IE1.Document.Forms(0).All.Item("Username").Value = login_name
IE1.Document.Forms(0).All.Item("Password").Value = password
IE1.Document.All.Item("Submit").Click

Now as you all must be aware of that sometimes it create problem in loading the web page and it is really difficult tracking when a page has successfully loaded. Although, I am using

Do While IE1.Busy Or IE1.ReadyState <> READYSTATE_COMPLETE

But it is not working well 'every time'

So now, I am thinking other ways...I am working on Webbrowser to login to website and then I am trying to open the website outside vb application. I mean I open up IE and try to navigate that particular website. What I am assuming here that it should let me use it without asking for username and password as I have already entered the login credentials automatically using webbrowser (within Vb form). But website is again asking for password. Though, I can see that username is already present in the username field. so I am assuming that it is saving the cookies to some extent but not the password.

I need help here to resolve this issue. I just wanted to automatically login to website using webbrowser control and then I like to open IE and wanted to navigate the website without re-entering username/ password

Any help will be much appreciated

Thanks

_Ayazul Haque

Viewing all articles
Browse latest Browse all 21839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>