Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 13th, 2013, 07:13 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Stuck in log out option

Hi all,

i am getting stuck in my application..i have included web browser component in my website for Facebook page..and i have passed the username and password through two text boxes and button to enter into it automatically..it enters but i dunno how to log out from it automatically..can anyone solve my problem...

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles fb_button.Click
Dim fb_button As String = Nothing
For Each element As HtmlElement In WebBrowser1.Document.All
If InStr(element.Id, "u_0_b") Then
fb_button = element.Id
End If
Next
WebBrowser1.Document.GetElementById("email").SetAt tribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("pass").SetAtt ribute("value", TextBox2.Text)
WebBrowser1.Document.GetElementById(fb_button).Inv okeMember("click")

End Sub

here is a code which i have used to enter into the webpage through button...what my question is..if i have to include a session?if it is done whether it will automatically log out??please provide me a code for it..
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Check Boxes/Option buttons/Option Group hewstone999 Access VBA 1 March 14th, 2008 08:25 AM
How to log to server's event log LenexaKS Access VBA 4 March 11th, 2008 01:49 PM
Can't get Log to write the Log.txt file jnbutler BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 3 July 31st, 2007 05:04 AM
AppException Class -Log Error to Event Log bekim BOOK: ASP.NET Website Programming Problem-Design-Solution 7 December 7th, 2004 01:01 PM
I'm stuck! budman Classic ASP Databases 2 November 3rd, 2003 12:52 AM



All times are GMT -4. The time now is 04:37 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.