[Tutorial] Facebook Login
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
benji_19994 wrote:Hey peoples i like this tutorial but i would like to know how to how make the facebook login password and user name open in a diff window-form And also so it can remember my details thanks if any one could help cooll; if you can help!You could add the webbrowser to form2 and make the code in login button like this i think
Code: Select all
remember to set the webbrowser code in form2Form2.show
'Added the form2. in front of webbrowser makes it go to form2
form2.WebBrowser1.Document.GetElementById("email").SetAttribute("value", TextBox1.Text)
form2.WebBrowser1.Document.GetElementById("pass").SetAttribute("value", TextBox2.Text)
form2.WebBrowser1.Document.GetElementById("loginbutton").InvokeMember("click")
and for the save information you could use my.settings
in my project under settings add 2 strings, 1 called name another called pw
Then in login button add
Code: Select all
and to the form load event
'Save the information to the program, will be reset if the program is moved
my.settings.name = textbox1.text
my.settings.pw = textbox2.text
my.settings.save
Code: Select all
Should do what you asked 'Load information on program startup from my.settings, if the program is moved to another directory the text will be reset
textbox1.text = my.settings.name
textbox2.text = my.settings.pw

Last edited by AnoPem on Wed Apr 18, 2012 8:21 pm, edited 2 times in total.
Thank you cooll; This site is really great if you need help
benji_19994 wrote:Thank you cooll; This site is really great if you need helpMy pleasure
Ohh my good!
How much many can I find a good source on this site.
Thanks
How much many can I find a good source on this site.

Thanks

Copyright Information
Copyright © Codenstuff.com 2020 - 2023