.Net 2003 to 2005

D

DL

Hi,
I'm lost right now...
I used 'Visual Studio 2005 Beta Home' to make a small application.
But since the computer i want to use it on has .Net 2003 installed I get a
version error.
This probably has to do with the framework version wich is 1.1 with 2003 en
2.something with 2005.
So I can use a computer wich has Visual Studio . Net 2003 Enterprise edition
on it.
but now if I try to build a application with even the most simple commands
it gives errors.

for instance:
I try to switch from one form to another.
In 2005 i used:

Form1.Hide()
Form2.Show()

But if I use this in 2003 Enterprise edition i get:
Form1.vb(59): Reference to a non-shared member requires an object reference.

Do I have to do something else because I have a more advanced .Net 2003
enterprise version instead of my .Net 2005 home version?

Any suggestions would be greatly appreciated...
 
C

Chris Dunaway

but now if I try to build a application with even the most simple commands
it gives errors.

for instance:
I try to switch from one form to another.
In 2005 i used:

Form1.Hide()
Form2.Show()

That's because default instances are not supported in 2003. They
reintroduced this feature in 2005. In 2003, you will have to use this:

Dim f as New Form1
f.Hide()
f.Show()

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top