Re: very new to .Net

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: HankG (no_one_at_somewhere.com)
Date: 06/04/04


Date: Fri, 4 Jun 2004 17:21:48 -0400

HankG (that's me) wrote a lengthy missal to which Armin graciously
responded.
Thank you for your answers: short, sweet, and to the point.

I was very happy to see my software package arrive, yesterday, but my
happiness was short lived as I needed to install the package twice (I should
say that I chose to install it twice). During each installation, messages
popped up stating that components (no name) were missing.

After the second installation, I tried the program which appeared to work.
Previously, I had been reading VB .NET for Dummies and other books, to get a
little foundation. I tried to load 'Lucky 7', a practice program, but it
and others mentioned in the enclosed 'documentation', Getting Started with
VB .NET ver 2003, were nowhere to be found.

I loaded Lucky 7 from the program documentation in the book. The program
would build successfully, but when attempting to run it, it would deliver an
exception message. I checked the program meticulously against the textbook;
it was correct.

After pondering this for several hours, I tried the VERY BASIC, one-line
program, "Hello, world". It consists of a textbox, button, and one line of
code added:

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles TextBox1.TextChanged

End Sub

Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

(the following was added) TextBox1.Text = "Hello, world!"

No matter what I did to run these two programs, the result was the same:

"An unhandled exception of type 'System.NullReferenceException' occurred in
Unknown Module.

Additional information: Object reference not set to an instance of an
object."

When debugging was stopped, a box popped up: "There is no source code
available for the current location".

Trying to get some answers from 'help' was frustrating, as I seemed to be
going around in circles. I tried Google; also very frustrating. I'm really
thrown by the statement 'object reference not set to an instance of an
object'. What am I missing? Or, is it possible that my software if
defective?

HankG

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.693 / Virus Database: 454 - Release Date: 5/31/2004

Quantcast