By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,685 Members | 1,326 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,685 IT Pros & Developers. It's quick & easy.

Possible VB.Net bug when first form loads

P: n/a
I have built a VB.Net app that runs fine when the Windows
desktop resolution is set to normal (100%).

When the Display Properties>Settings>Advanced>Display>Font
Size is set to "Large Fonts" rather than "Small Fonts" I
get an error :

"An unhandled exception of
type 'System.NullReferenceException' occurred in Unknown
Module. Additional information: Object reference not set
to an instance of an object."

This error happens when the application loads in the
development environment (before the first form displays).

Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
* "Ron Sellers" <rs******@alsde.edu> scripsit:
I have built a VB.Net app that runs fine when the Windows
desktop resolution is set to normal (100%).

When the Display Properties>Settings>Advanced>Display>Font
Size is set to "Large Fonts" rather than "Small Fonts" I
get an error :

"An unhandled exception of
type 'System.NullReferenceException' occurred in Unknown
Module. Additional information: Object reference not set
to an instance of an object."

This error happens when the application loads in the
development environment (before the first form displays).


You will have to debug...

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

P: n/a
Hi Ron,

I have replied to you in the newsgroup below.
microsoft.public.vsnet.general

Please go to have a check and let me know the result.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: "Ron Sellers" <rs******@alsde.edu>
Sender: "Ron Sellers" <rs******@alsde.edu>
Subject: Possible VB.Net bug when first form loads
Date: Wed, 15 Oct 2003 07:39:26 -0700
Lines: 15
Message-ID: <0e****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcOTKiIUmCKoj+6dSIOzplVo35vy5Q==
Newsgroups: microsoft.public.dotnet.languages.vb
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:146900
NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

I have built a VB.Net app that runs fine when the Windows
desktop resolution is set to normal (100%).

When the Display Properties>Settings>Advanced>Display>Font
Size is set to "Large Fonts" rather than "Small Fonts" I
get an error :

"An unhandled exception of
type 'System.NullReferenceException' occurred in Unknown
Module. Additional information: Object reference not set
to an instance of an object."

This error happens when the application loads in the
development environment (before the first form displays).


Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.