[VB.net] Form+Webbrowser menu

User Tag List

Results 1 to 11 of 11
  1. #1
    secureecs's Avatar Member
    Reputation
    -3
    Join Date
    Jan 2007
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [VB.net] Form+Webbrowser

    Hello

    How can i save cookies on 1st form and use it on 2nd form?
    Last edited by secureecs; 11-14-2009 at 10:48 AM.

    [VB.net] Form+Webbrowser
  2. #2
    Erase's Avatar Banned
    Reputation
    229
    Join Date
    Jun 2008
    Posts
    990
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did not read title :b
    Last edited by SheEpYW0lf; 11-14-2009 at 01:50 PM.

  3. #3
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You want to have your cookies being stored seperately to form1. Or have them stored in public, so form2 can do form1.cookies (yes, that's never it, but prefixing form1).

  4. #4
    secureecs's Avatar Member
    Reputation
    -3
    Join Date
    Jan 2007
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there any chance for me to read a text or html and use some words from it into a label ?

  5. #5
    Ebonesser's Avatar Member
    Reputation
    33
    Join Date
    Mar 2009
    Posts
    123
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here you go:
    Try
    Dim fso, f
    Const ForReading = 1
    fso = CreateObject("Scripting.FileSystemObject")
    f = fso.opentextfile(Application.StartupPath & "\YOUR-"COOKIE"-FILE.txt", ForReading)
    TextBox1.Text = f.read(100000)
    Catch ex As Exception
    MsgBox("Could not find cookies!", MsgBoxStyle.Critical, "Error!")
    End Try
    You can have whatever extension on the file you want to read, just as long as it contains text inside it.
    You will receive an error if the file is blank (no text)

  6. #6
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    Dim fileContents as String
    Using myReader as System.IO.StreamReader = New System.IO.SteamReader(FilePath)
    Try
        fileContents = myReader.ReadToEnd()
        myReader.Close()
    Catch ex as Exception
    End Try
    Or that.

  7. #7
    secureecs's Avatar Member
    Reputation
    -3
    Join Date
    Jan 2007
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What i was trying to say is that i want to read the source of a webpage (html, xml, etc) using webbrowser controls and get a specified text from it.

    Ex. from " <h2>Welcome, Daniel Dontu</h2>" i want to use in my label only the name " Daniel Dontu " and ignore the rest of the page.

    Thank you so much,

  8. #8
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You'll want to learn to use WebClient then, as a WebBrowser isn't the way to do it.

  9. #9
    secureecs's Avatar Member
    Reputation
    -3
    Join Date
    Jan 2007
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, using webbrowser i can read the content of that page, what i need to do is to return a value based on a specified line from that page. I can identify that line from page , but i don't know how to return his value.

    I tried even using RegEx, but still don't understand where i do my mistake.

    So, if you have any eg. that help me extract name located in a specified line that contains <h2>Welcome, Name</h2> please let me know how to.

  10. #10
    Asbfaw's Avatar Member
    Reputation
    2
    Join Date
    Jan 2009
    Posts
    51
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ?? why did you edit your post that is not nice...

  11. #11
    WhiteShizzle's Avatar Active Member
    Reputation
    17
    Join Date
    Jun 2008
    Posts
    248
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    (<h2>Welcome, ).+?(</h2>)

Similar Threads

  1. Question Form buttons Vb.NET
    By Spot_1337 in forum Programming
    Replies: 15
    Last Post: 10-05-2008, 01:54 PM
  2. Getting 15k armor in bear form
    By Cush in forum World of Warcraft Guides
    Replies: 6
    Last Post: 01-03-2007, 01:10 PM
  3. Furbolg Form to Molten Giant
    By Zer0 in forum World of Warcraft Model Editing
    Replies: 25
    Last Post: 11-03-2006, 07:42 PM
  4. wisp form while alive!!!!
    By hihiri in forum World of Warcraft Exploits
    Replies: 7
    Last Post: 06-09-2006, 03:33 PM
  5. Skeletal Form and Mounted
    By Matt in forum World of Warcraft Exploits
    Replies: 1
    Last Post: 04-17-2006, 05:09 AM
All times are GMT -5. The time now is 08:45 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search