Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

[help] how to .invoikememeber("click") PL vb.net

Re: [help] how to .invoikememeber("click") PL vb.net

please lookup Button.PerformClick()



how sir?

tnx

- - - Updated - - -

i used this code



Dim theElementCollection As HtmlElementCollection = Nothing
theElementCollection = MWebBrowser.Document.GetElementsByTagName("div")
For Each curElement As HtmlElement In theElementCollection
'If curElement.GetAttribute("classname").ToString = "example" It doesn't work.
' This should be the work around.
If InStr(curElement.GetAttribute("classname").ToString, "Log out") Then
' Doesn't even fire.
' InvokeMember(test) after class is found.
'MessageBox.Show(curElement.GetAttribute("InnerText"))
curElement.InvokeMember("Click")
curElement.InvokeMember("MouseDown")
curElement.InvokeMember("MouseUp")
curElement.RaiseEvent("OnClick")
curElement.Focus()
Else
MsgBox("not found")
Exit Sub
End If

Next
 
Re: [help] how to .invoikememeber("click") PL vb.net

bakit di mo i-call yong function mo for logout (kung meron man, kung wala, gawa ka).

if condition is true then call logout function (siguro parang ganto, http://localhost/logout or http://localhost/logout.aspx). if naka ajax, call mo lang logout function mo.

:)
 
Re: [help] how to .invoikememeber("click") PL vb.net

Please try this

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
YourWebBrowserControl.Document.GetElementById("LogoutIDinMessenger").InvokeMember("click")
End Sub

;)
 
Re: [help] how to .invoikememeber("click") PL vb.net

Please try this

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
YourWebBrowserControl.Document.GetElementById("LogoutIDinMessenger").InvokeMember("click")
End Sub

;)



hindi ko po makita ung logoutID po..
 
Back
Top Bottom