Sender Handle
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
3 posts
Page 1 of 1
How to get sender
For example when you have tabbed web browser - every webbrowser has 1 same event, this is how to get the web browser
For example when you have tabbed web browser - every webbrowser has 1 same event, this is how to get the web browser
Code: Select all
Private Sub wb_docComplete(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) 'Handles 3,4+ webb's
Dim wb As WebBrowser = sender 'represents the "sender" as webbrowser
wb.Parent.Text = wb.DocumentTitle
End Sub
Just like this
Add Handler wb.WebBrowserDocumentCompletedEventArgs,AdressOf wb_docComplete
Add Handler wb.WebBrowserDocumentCompletedEventArgs,AdressOf wb_docComplete
Napster1488 wrote:Just like thisRemove the space in Add Handler
Add Handler wb.WebBrowserDocumentCompletedEventArgs,AdressOf wb_docComplete
M1z23R wrote:How to get senderYou should use CType(sender, WebBrowser)
For example when you have tabbed web browser - every webbrowser has 1 same event, this is how to get the web browser
Code: Select allPrivate Sub wb_docComplete(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) 'Handles 3,4+ webb's Dim wb As WebBrowser = sender 'represents the "sender" as webbrowser wb.Parent.Text = wb.DocumentTitle End Sub
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
![Image]()
![Image]()
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!

3 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023