
Originally Posted by
topblast
Thats only the part about ur DLL not being to be found. What about the LOGIN really i dont like my current login systems and i am not good with SQL
The login is done either by the sql or by using the webpage elements(doesn't require access to any sql tables)
just make a new webbrowser
[php] this->webBrowser1->Document->GetElementById("vb_login_username")->SetAttribute("value", textBox1->Text);
this->webBrowser1->Document->GetElementById("vb_login_password")->SetAttribute("value", textBox2->Text);
this->webBrowser1->Document->GetElementById("cookieuser")->SetAttribute("value", "0");
this->webBrowser1->Document->GetElementById("cookieuser")->Focus();
SendKeys::Send("{TAB}");
SendKeys::Send("{Enter}");[/php]
and then to check if he has logged in correctly
[php]if (this->richTextBox1->Text->Contains("Thank you for logging in")do your stuff...[/php]
and if he didn't enter it correctly
[php]if(this->richTextBox1->Text->Contains("invalid")) exit the application [/php]
edit forgot to say that the richtextbox is the webbrowser's page document text
and this way works on vb forums only because of the elements names u can download google chrome and use its firebug to see the elements for other types of boards
share share share
