473,473 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Possible VB.Net bug when first form loads

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
2 1135
* "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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: webdev | last post by:
Hi, I have an application built for the education market in which I open popup windows containing ASP scripts which when the user clicks the 'Update' button, the database is updated and the...
2
by: TD | last post by:
This should be simple but I can't figure it out! I have a form bound to a query. On this form is a combo box that is bound to the same query. When the form loads the combo box is blank. If you...
3
by: CAD Fiend | last post by:
Hello, Well, after an initial review of my database by my client, they have completely changed their minds about how they want their form. As a result, I'm having to re-think the whole process....
3
by: Kathy Burke | last post by:
Hi, I'm tired, so this question may be silly. I have a fairly long sub procedure. Based on one condition, I load another sub with the following: If Session("GRN") = "complete" Then txtScan.Text...
4
by: TJ | last post by:
Hi, There is one aspx web page that contains usercontrol. In aspx page and usercontrol , there is each submit button... Here is what I want... I want to process something depending on each...
3
by: Simon Verona | last post by:
I have a parent form which contains a toolbar. The toolbar controls the loading and switching to of MDI child forms. The code for the toolbar click event and one of the subroutines that loads...
1
by: Kevin R | last post by:
This is one of the weirdest problems I have ever run into. I have had to trim down a bunch of code to give a sample that is more easily readable by those who will view this. Here is the problem:...
7
by: Rotsey | last post by:
Hi, I am loading a tab control on a form. The code loads textboxes and comboboxes and checkboxes, normal data entry form that loads a table row of data. I have a combo on the form above the...
1
by: Joy M | last post by:
Hi - I am writing my first two programs in ASP.NET, using Visual Basic. The first is a questionaire form, the second sends the data collected from the form out in an email. The questionaire...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.