vb-> Diffrences in opening a form

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

I read or heard that MS reintroduced this notation. So it is by design.
Frank
 
Ive noticed something weird recently..........
-------------------------------------------------------
in vb 2005 express...i wrote:
-------------------------------------------------------------
////////////////////////////////////
form1.show()
///////////////////////////////////
and thats it....it worked
------------------------------------------------------------
in vs.net2003 (vb)
-----------------------------------------------------------------
I wrote the same but it generated errors.......I had to end up writing:
/////////////////////////////////
dim form1 as new form1
form1.show()
///////////////////////////////
Why the diffrence??
Am I missing something here?
Or am I just totaly wrong!?
 
Frank said:
I read or heard that MS reintroduced this notation. So it is by design.

ACK. This feature is called "default instances".
 
it's a feature of a messed up implementation of OOP that MS put back in 2005
for old VB programmers that for some reason don't like true OOP..... in
reality it takes away from true OOP programming, I wish they'd get rid of
it...
 

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

Back
Top