Hello guys, well first of all, i did some search annnd i've found nothing that helps me...My idea is... Make a program, to connect with the website to log-in with the data of the site...I created a webbrowser, and auto load the correct url (not by clicking on navigate button) (invisible) and write the code,
Those id's, username and password also submit, is in relation with the site code. (basic html). So the Code is basically working, If i check in the web, When i write in the login txtbox and password txtbox2, it throws at the browsers in the the correct place anddd login. If u write it wrong, probably the program Stop_Responding.
my real problem is, i can't remember of or better, find out how do I write, like an exception, like, if I log-in with the right username and pass it will show Form2, if not, a msgbox will show saying that is wrong.
I'm stuck at this part...:( (i'm so noob :()
If helps I had one idea, to simplify the code ... Because I have a webbrowserinvisible but working, so i notice that IF i log-in with the correct info, i get ported like to index, if i've wrong my pass, i get to members.php
like this: if wrong: http://www.******ms.net/member.php
if correct: http://www.******ms.net/index.php
So make a exception like, If the browsers redirect to member.php, Msgbox ("blabla...") Else browser if is in index.php -> Form2.Show () .. like that...
idk just an idea,,, could someone help me?
i'll put your name in the credits, thats for sure!
Code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Document.GetElementById("username").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("password").SetAttribute("value", TextBox2.Text)
WebBrowser1.Document.GetElementById("submit").InvokeMember("click")my real problem is, i can't remember of or better, find out how do I write, like an exception, like, if I log-in with the right username and pass it will show Form2, if not, a msgbox will show saying that is wrong.
I'm stuck at this part...:( (i'm so noob :()
If helps I had one idea, to simplify the code ... Because I have a webbrowserinvisible but working, so i notice that IF i log-in with the correct info, i get ported like to index, if i've wrong my pass, i get to members.php
like this: if wrong: http://www.******ms.net/member.php
if correct: http://www.******ms.net/index.php
So make a exception like, If the browsers redirect to member.php, Msgbox ("blabla...") Else browser if is in index.php -> Form2.Show () .. like that...
idk just an idea,,, could someone help me?
i'll put your name in the credits, thats for sure!