Technology and Online Community For All
welcome JOIN US NOW AND FEEL THE DIFFERENCE headbang

Technology and Online Community For All

What You See Is What You Get
 
HomeCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in
November 2017
SunMonTueWedThuFriSat
   1234
567891011
12131415161718
19202122232425
2627282930  
CalendarCalendar
Latest topics
» Uniblue PowerSuite
Mon Apr 09, 2012 7:27 pm by BlitzKrieG

» Ova Drive Hider
Fri Mar 02, 2012 8:48 am by CodeWarrior

» Ova Folder Security
Mon Feb 27, 2012 5:06 pm by CodeWarrior

» SPSBox
Sun Feb 26, 2012 4:24 am by CodeWarrior

» Norton [all here]
Thu Feb 23, 2012 8:01 am by BlitzKrieG

» OvaSystemSolution CVRS System
Sat Feb 18, 2012 6:06 am by CodeWarrior

» Avril Lavigne - Smile
Sat Jan 28, 2012 7:14 am by ^PiNKHeRMioNe

» Hot N Cold- Katy Perry
Sat Jan 28, 2012 7:11 am by ^PiNKHeRMioNe

» America's next top model (All Stars) Lisa D'Amato
Sat Jan 28, 2012 6:55 am by ^PiNKHeRMioNe

Search
 
 

Display results as :
 
Rechercher Advanced Search
Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

Most users ever online was 25 on Fri Dec 19, 2014 9:47 pm
Top posters
trekyboy
 
BlitzKrieG
 
ZNABiRA
 
EDI`STEALTH
 
*B o R g Z
 
SHY
 
CodeWarrior
 
^PiNKHeRMioNe
 
RaiJin
 
chaotic`
 
Statistics
We have 239 registered users
The newest registered user is Hellraiser666

Our users have posted a total of 948 messages in 662 subjects

Share | 
 

 TUT for Login Website and Post Using your Own Application

View previous topic View next topic Go down 
AuthorMessage
CodeWarrior
Code Master
Code Master


Join date : 2011-12-20
Male Posts : 22

20111228
PostTUT for Login Website and Post Using your Own Application

Basic TUT for Login Website and Post Using your Own Application

1. Open Your VBNet 2005 or 2008 or 2010 gamit ko 2010
2. Create New Project
3. Select Window Form Application
3. You Need to Add 3 TextBox, 2 Buttons and 1 Browser

Watch this Video
[You must be registered and logged in to see this link.]


Code:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If Button1.Text = "Log In" Then
            WebBrowser1.Document.GetElementById("navbar_username").SetAttribute("value", (TextBox1.Text))
            WebBrowser1.Document.GetElementById("navbar_password").SetAttribute("value", (TextBox2.Text))
            Dim allelements As HtmlElementCollection = WebBrowser1.Document.All

            For Each webpageelement As HtmlElement In allelements

                If webpageelement.GetAttribute("tabindex") = "104" Then
                    webpageelement.InvokeMember("click")
                End If
            Next
        Else

            Dim page As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("input")
            For Each log As HtmlElement In page
                If log.GetAttribute("value") = "log_out" Then
                    log.InvokeMember("click")
                End If
            Next

        End If
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        WebBrowser1.Document.GetElementById("vbshout_pro_shoutbox_editor").SetAttribute("value", (TextBox3.Text))

        Dim allelements As HtmlElementCollection = WebBrowser1.Document.All

        For Each webpageelement As HtmlElement In allelements

            If webpageelement.GetAttribute("value") = "Shout" Then

                webpageelement.InvokeMember("click")
            End If
        Next
    End Sub
Back to top Go down
View user profile
Share this post on: Excite BookmarksDiggRedditDel.icio.usGoogleLiveSlashdotNetscapeTechnoratiStumbleUponNewsvineFurlYahooSmarking

TUT for Login Website and Post Using your Own Application :: Comments

No Comment.
 

TUT for Login Website and Post Using your Own Application

View previous topic View next topic Back to top 

Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Technology and Online Community For All :: Technical Support :: Programming Related :: Visual Basic 6/VB.NET-
Jump to: