Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    [TUT] vb2008 website login


    Wizite
     Share

    Recommended Posts

    Hello,

    i'm going to learn you how to simply login to a website in visual basic.

     

    what u need:

    vb2008

    you need to know a bit of html/php (if you want to use it on another website)

     

     

    1. add:

    ~ 1 button

    ~ 2 textboxes

    ~ 1 webbrowser

     

    2. add this code to the button:

            WebBrowser1.Document.GetElementById("username").SetAttribute("value", TextBox1.Text) 
           WebBrowser1.Document.GetElementById("password").SetAttribute("value", TextBox2.Text) 
    
           Dim allelements As HtmlElementCollection = WebBrowser1.Document.All
    
           For Each webpageelement As HtmlElement In allelements
    
               If webpageelement.GetAttribute("value") = "Sign In" Then 
    
                   webpageelement.InvokeMember("click") 
    
               End If
    
           Next 

     

    line1 : username is the name of the user textbox on the website (this code is made for ghbsys, if you want to use it for another website is probrally something else)

    line2 : password is the name of the password textbox on the website

    line4 : sign in is the text on the button so the program can identify wich button he needs to click

    line5 : clicks the button from line 4

     

    3. add this to form load:

    WebBrowser1.Navigate("http://forum.ghbsys.net/index.php?app=core&module=global&section=login")

     

     

    (make sure you are logged out from the website otherwhise it wont work, <.<)

     

     

    now a little tut for people that want to use it on another website:

    goto the login website

    right click on your webbrowser and click "view source"

    HTML is easy everything is from above is also from above in your code and everything is down is also down in your code

    if there is a word above your username textbox search it in the source and normally you will find the username textbox, some username textbox names : username,user,login

    the name of the password textbox are some lines under the username textbox

     

     

    and you are done :)

    Sry for my english its bad.

    Edited by Wizite
    • Upvote 1
    Link to comment
    Share on other sites

    • 2 months later...

    I know this is for the beginners..

    Link to comment
    Share on other sites

    • 1 year later...

    I know this is for the beginners..

     

    It doesn't works for me. Can someone help me ? I have a programm in vb and i want that only users from my site can use this programm by loggin in (with 2 textboxes and 1 button). Thanks ^^

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...