CefSharp.Winforms.ChromiumWebBrowser minimal example on VB.NET (with cookies collector and script executor).
Resouces.resx file and VB wrapper around it
1: <?xml version="1.0" encoding="utf-8"?>
2: <root>
3: <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
4: <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
5: <xsd:element name="root" msdata:IsDataSet="true">
6: <xsd:complexType>
7: <xsd:choice maxOccurs="unbounded">
8: <xsd:element name="metadata">
9: <xsd:complexType>
10: <xsd:sequence>
11: <xsd:element name="value" type="xsd:string" minOccurs="0" />
12: </xsd:sequence>
13: <xsd:attribute name="name" use="required" type="xsd:string" />
14: <xsd:attribute name="type" type="xsd:string" />
15: <xsd:attribute name="mimetype" type="xsd:string" />
16: <xsd:attribute ref="xml:space" />
17: </xsd:complexType>
18: </xsd:element>
19: <xsd:element name="assembly">
20: <xsd:complexType>
21: <xsd:attribute name="alias" type="xsd:string" />
22: <xsd:attribute name="name" type="xsd:string" />
23: </xsd:complexType>
24: </xsd:element>
25: <xsd:element name="data">
26: <xsd:complexType>
27: <xsd:sequence>
28: <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
29: <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
30: </xsd:sequence>
31: <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
32: <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
33: <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
34: <xsd:attribute ref="xml:space" />
35: </xsd:complexType>
36: </xsd:element>
37: <xsd:element name="resheader">
38: <xsd:complexType>
39: <xsd:sequence>
40: <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
41: </xsd:sequence>
42: <xsd:attribute name="name" type="xsd:string" use="required" />
43: </xsd:complexType>
44: </xsd:element>
45: </xsd:choice>
46: </xsd:complexType>
47: </xsd:element>
48: </xsd:schema>
49: <resheader name="resmimetype">
50: <value>text/microsoft-resx</value>
51: </resheader>
52: <resheader name="version">
53: <value>2.0</value>
54: </resheader>
55: <resheader name="reader">
56: <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
57: </resheader>
58: <resheader name="writer">
59: <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
60: </resheader>
61: <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
62: <data name="chromium_256" type="System.Resources.ResXFileRef, System.Windows.Forms">
63: <value>..\Resources\chromium-256.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
64: </data>
65: <data name="logo_new_4x_1_" type="System.Resources.ResXFileRef, System.Windows.Forms">
66: <value>..\Resources\logo-new@4x(1).ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
67: </data>
68: <data name="nav_left_green" type="System.Resources.ResXFileRef, System.Windows.Forms">
69: <value>..\Resources\nav_left_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
70: </data>
71: <data name="nav_plain_green" type="System.Resources.ResXFileRef, System.Windows.Forms">
72: <value>..\Resources\nav_plain_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
73: </data>
74: <data name="nav_plain_red" type="System.Resources.ResXFileRef, System.Windows.Forms">
75: <value>..\Resources\nav_plain_red.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
76: </data>
77: <data name="nav_right_green" type="System.Resources.ResXFileRef, System.Windows.Forms">
78: <value>..\Resources\nav_right_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
79: </data>
80: </root>
1: '------------------------------------------------------------------------------
2: ' <auto-generated>
3: ' This code was generated by a tool.
4: ' Runtime Version:4.0.30319.42000
5: '
6: ' Changes to this file may cause incorrect behavior and will be lost if
7: ' the code is regenerated.
8: ' </auto-generated>
9: '------------------------------------------------------------------------------
10:
11: Option Strict On
12: Option Explicit On
13:
14: Imports System
15:
16: Namespace My.Resources
17:
18: 'This class was auto-generated by the StronglyTypedResourceBuilder
19: 'class via a tool like ResGen or Visual Studio.
20: 'To add or remove a member, edit your .ResX file then rerun ResGen
21: 'with the /str option, or rebuild your VS project.
22: '''<summary>
23: ''' A strongly-typed resource class, for looking up localized strings, etc.
24: '''</summary>
25: <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0"), _
26: Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
27: Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
28: Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
29: Friend Module Resources
30:
31: Private resourceMan As Global.System.Resources.ResourceManager
32:
33: Private resourceCulture As Global.System.Globalization.CultureInfo
34:
35: '''<summary>
36: ''' Returns the cached ResourceManager instance used by this class.
37: '''</summary>
38: <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
39: Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
40: Get
41: If Object.ReferenceEquals(resourceMan, Nothing) Then
42: Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Jotform_Addins2.Resources", GetType(Resources).Assembly)
43: resourceMan = temp
44: End If
45: Return resourceMan
46: End Get
47: End Property
48:
49: '''<summary>
50: ''' Overrides the current thread's CurrentUICulture property for all
51: ''' resource lookups using this strongly typed resource class.
52: '''</summary>
53: <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
54: Friend Property Culture() As Global.System.Globalization.CultureInfo
55: Get
56: Return resourceCulture
57: End Get
58: Set
59: resourceCulture = value
60: End Set
61: End Property
62:
63: '''<summary>
64: ''' Looks up a localized resource of type System.Drawing.Bitmap.
65: '''</summary>
66: Friend ReadOnly Property chromium_256() As System.Drawing.Bitmap
67: Get
68: Dim obj As Object = ResourceManager.GetObject("chromium_256", resourceCulture)
69: Return CType(obj,System.Drawing.Bitmap)
70: End Get
71: End Property
72:
73: '''<summary>
74: ''' Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
75: '''</summary>
76: Friend ReadOnly Property logo_new_4x_1_() As System.Drawing.Icon
77: Get
78: Dim obj As Object = ResourceManager.GetObject("logo_new_4x_1_", resourceCulture)
79: Return CType(obj,System.Drawing.Icon)
80: End Get
81: End Property
82:
83: '''<summary>
84: ''' Looks up a localized resource of type System.Drawing.Bitmap.
85: '''</summary>
86: Friend ReadOnly Property nav_left_green() As System.Drawing.Bitmap
87: Get
88: Dim obj As Object = ResourceManager.GetObject("nav_left_green", resourceCulture)
89: Return CType(obj,System.Drawing.Bitmap)
90: End Get
91: End Property
92:
93: '''<summary>
94: ''' Looks up a localized resource of type System.Drawing.Bitmap.
95: '''</summary>
96: Friend ReadOnly Property nav_plain_green() As System.Drawing.Bitmap
97: Get
98: Dim obj As Object = ResourceManager.GetObject("nav_plain_green", resourceCulture)
99: Return CType(obj,System.Drawing.Bitmap)
100: End Get
101: End Property
102:
103: '''<summary>
104: ''' Looks up a localized resource of type System.Drawing.Bitmap.
105: '''</summary>
106: Friend ReadOnly Property nav_plain_red() As System.Drawing.Bitmap
107: Get
108: Dim obj As Object = ResourceManager.GetObject("nav_plain_red", resourceCulture)
109: Return CType(obj,System.Drawing.Bitmap)
110: End Get
111: End Property
112:
113: '''<summary>
114: ''' Looks up a localized resource of type System.Drawing.Bitmap.
115: '''</summary>
116: Friend ReadOnly Property nav_right_green() As System.Drawing.Bitmap
117: Get
118: Dim obj As Object = ResourceManager.GetObject("nav_right_green", resourceCulture)
119: Return CType(obj,System.Drawing.Bitmap)
120: End Get
121: End Property
122: End Module
123: End Namespace
Comments (
)
Link to this page:
//www.vb-net.com/CefSharp_ChromiumWebBrowser/Resources.htm
|