473,405 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

vb-> Diffrences in opening a form

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!?
Nov 21 '05 #1
3 862
I read or heard that MS reintroduced this notation. So it is by design.
Frank

"Hareth" <ab******@hotmail.com> wrote in message
news:ut*************@TK2MSFTNGP09.phx.gbl...
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!?

Nov 21 '05 #2
"Frank" <fr***@frank.com> schrieb:
I read or heard that MS reintroduced this notation. So it is by design.


ACK. This feature is called "default instances".

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #3
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...

"Hareth" <ab******@hotmail.com> wrote in message
news:ut*************@TK2MSFTNGP09.phx.gbl...
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!?

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Terry | last post by:
Hi, I need some feedback. We are converting to .Net and we are trying to decide on whether to use VB.net or C#.net. As far as our current systems, they will probably be rewritten in ASP.Net. I...
13
by: Arsalan | last post by:
Is there any advantage in C# over VB.NET ? Or the difference is only syntax ? Can anything done in C# which cannot be done in VB.NET?
72
by: Robin Tucker | last post by:
I need to find some documents/research for my manager about VB.NET v C# use. I've noticed that there are many more people using C# than VB.NET, that there seem to be more job vacancies specifying...
28
by: Andy | last post by:
Any good resources regarding benefitis by using C3 over VB? /Andy
34
by: Eric Wise | last post by:
Does anyone work for companies that actually implement both VB and C#? I know that you can do this in theory, I just find it hard to imagine that a company would split its programming technologies...
12
by: Leo Muller | last post by:
I always thought that moving from VB.NET to C# would be very easy. Even though so far it hasn't been hard, there are some annoying things, that may have to do with my visual studio settings. -...
16
by: Ben Hannon | last post by:
Hi, I'm writting a COM Class in VB.NET to be used in a VB6 project (Tired of the VB6 hassles with cloning and serializing an object). All my classes I need cloneable/serializable are now in a...
182
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
25
by: Sharrukin Amiri | last post by:
Hello, I am using VB 6.0 for many years. Everytime I needed to build software applications, I just opened VB 6.0 and started coding. I am now looking VB.NET Express Edition and I find I can no...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.