EDN Admin
Well-known member
<pre class="prettyprint Me.Font = {Name = Reference to a non-shared member requires an object reference. Size=9.75}[/code]
Ive seen the above in the OnLoad and Dispose Subs when I view Me.Font with QuickWatch.
In the .Design sub I see that the font is being set.
<pre style="font-family:Consolas; background:white; color:black <span style="color:blue Me.Font = <span style="color:blue New System.Drawing.<span style="color:#2b91af Font(<span style="color:#a31515 "Arial", 11.25!, System.Drawing.<span style="color:#2b91af FontStyle.Regular, System.Drawing.<span style="color:#2b91af GraphicsUnit.Point, <span style="color:blue CType(0, <span style="color:blue Byte)) Doesnt Me.Font in the subs mentioned return a reference to the object created in the .Design code? If so what does the QuickWatch note indicate?
[/code]
View the full article
Ive seen the above in the OnLoad and Dispose Subs when I view Me.Font with QuickWatch.
In the .Design sub I see that the font is being set.
<pre style="font-family:Consolas; background:white; color:black <span style="color:blue Me.Font = <span style="color:blue New System.Drawing.<span style="color:#2b91af Font(<span style="color:#a31515 "Arial", 11.25!, System.Drawing.<span style="color:#2b91af FontStyle.Regular, System.Drawing.<span style="color:#2b91af GraphicsUnit.Point, <span style="color:blue CType(0, <span style="color:blue Byte)) Doesnt Me.Font in the subs mentioned return a reference to the object created in the .Design code? If so what does the QuickWatch note indicate?
[/code]
View the full article