CefSharp.Winforms.ChromiumWebBrowser minimal example on VB.NET (with cookies collector and script executor).
This is extension function to process another thread request to Winforms thread.
1: Imports System
2: Imports System.Windows.Forms
3: Imports System.Runtime.CompilerServices
4:
5:
6: Module ControlExtensions
7: <Extension()>
8: Sub InvokeOnUiThreadIfRequired(ByVal control As Control, ByVal action As Action)
9: If control.InvokeRequired Then
10: control.BeginInvoke(action)
11: Else
12: action.Invoke()
13: End If
14: End Sub
15: End Module
Comments (
)
Link to this page:
//www.vb-net.com/CefSharp_ChromiumWebBrowser/ControlExtensions.htm
|