Connecting Tech Pros Worldwide Forums | Help | Site Map

Does VB 2005 have full access to the framework?

clarence_rollins
Guest
 
Posts: n/a
#1: Dec 19 '05
I've read that the framework is completely accessible to c#.

Is that true for VB? If not, what parts of the framework are not accessible
to VB?



Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
#2: Dec 19 '05

re: Does VB 2005 have full access to the framework?


"clarence_rollins" <someone@microsoft.com> schrieb:[color=blue]
> I've read that the framework is completely accessible to c#.
>
> Is that true for VB? If not, what parts of the framework are not
> accessible
> to VB?[/color]

It's completely accessible to VB 2005 too, as it has been since VB.NET 2002.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

clarence_rollins
Guest
 
Posts: n/a
#3: Dec 19 '05

re: Does VB 2005 have full access to the framework?


I asked the question (which I should have included with my original post)
because I am moving from VB6 to either c# or VB. Some of the reasons I've
heard for moving to c# instead of VB are: more income, better employment
opportunities, complete access to the framework, elegant syntax and
professional respect.

For me, the first three reasons are compelling enough to study c# instead of
VB.


"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:u9p1gwOBGHA.2912@tk2msftngp13.phx.gbl...[color=blue]
> "clarence_rollins" <someone@microsoft.com> schrieb:[color=green]
> > I've read that the framework is completely accessible to c#.
> >
> > Is that true for VB? If not, what parts of the framework are not
> > accessible
> > to VB?[/color]
>
> It's completely accessible to VB 2005 too, as it has been since VB.NET[/color]
2002.[color=blue]
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://classicvb.org/petition/>
>[/color]


I Don't Like Spam
Guest
 
Posts: n/a
#4: Dec 19 '05

re: Does VB 2005 have full access to the framework?


clarence_rollins wrote:[color=blue]
> I asked the question (which I should have included with my original post)
> because I am moving from VB6 to either c# or VB. Some of the reasons I've
> heard for moving to c# instead of VB are: more income, better employment
> opportunities, complete access to the framework, elegant syntax and
> professional respect.
>
> For me, the first three reasons are compelling enough to study c# instead of
> VB.
>
>
> "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
> news:u9p1gwOBGHA.2912@tk2msftngp13.phx.gbl...
>[color=green]
>>"clarence_rollins" <someone@microsoft.com> schrieb:
>>[color=darkred]
>>>I've read that the framework is completely accessible to c#.
>>>
>>>Is that true for VB? If not, what parts of the framework are not
>>>accessible
>>>to VB?[/color]
>>
>>It's completely accessible to VB 2005 too, as it has been since VB.NET[/color]
>
> 2002.
>[color=green]
>>--
>> M S Herfried K. Wagner
>>M V P <URL:http://dotnet.mvps.org/>
>> V B <URL:http://classicvb.org/petition/>
>>[/color]
>
>[/color]

-elegant syntax?
That is completely a matter of opinion and in mine, it's incorrect.

-more income, better employmentopportunities
Just look at the job boards, there isn't a difference.

-complete access to the framework
False

-professional respect
False, They do they exact same thing, it's just what syntax you know.
CMM
Guest
 
Posts: n/a
#5: Dec 19 '05

re: Does VB 2005 have full access to the framework?


As a long time VB programmer (10 years) and a C/C++ programmer before that,
I do believe the "C" syntax is sometimes more concise than VB (for instance
I like the intuitive way you cast variables in "C" as oppossed to VB.NET's
CType(...) or DirectCast(...) methods). However, this is not a FUNCTIONAL
difference. In fact, in terms of really functional stuff VB is in a lot of
ways better than C#. One need only look at the sort of declarative way you
can do Event Handling in forms (using Handles keyword) as oppossed to C#'s
awkward overuse of delegates and such (which indeed are also available to
you in VB as well if you want to use them).

But, in the end, really it's a matter of taste I think. If you're a good
disciplined VB coder then you'll love VB.NET. If you still consider yourself
a sort of a lightweight VB programmer and need a little structure imposed on
you then you might want to look at C#.


"clarence_rollins" <someone@microsoft.com> wrote in message
news:%230uIu%23OBGHA.240@TK2MSFTNGP11.phx.gbl...[color=blue]
>I asked the question (which I should have included with my original post)
> because I am moving from VB6 to either c# or VB. Some of the reasons I've
> heard for moving to c# instead of VB are: more income, better employment
> opportunities, complete access to the framework, elegant syntax and
> professional respect.
>
> For me, the first three reasons are compelling enough to study c# instead
> of
> VB.
>
>
> "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
> news:u9p1gwOBGHA.2912@tk2msftngp13.phx.gbl...[color=green]
>> "clarence_rollins" <someone@microsoft.com> schrieb:[color=darkred]
>> > I've read that the framework is completely accessible to c#.
>> >
>> > Is that true for VB? If not, what parts of the framework are not
>> > accessible
>> > to VB?[/color]
>>
>> It's completely accessible to VB 2005 too, as it has been since VB.NET[/color]
> 2002.[color=green]
>>
>> --
>> M S Herfried K. Wagner
>> M V P <URL:http://dotnet.mvps.org/>
>> V B <URL:http://classicvb.org/petition/>
>>[/color]
>
>[/color]


CMM
Guest
 
Posts: n/a
#6: Dec 20 '05

re: Does VB 2005 have full access to the framework?


I would also add the multitude of methods available in the VisualBasic
namespace, which duplicate all the classic long standing BASIC statements-
some of which have been around since 1977. For instance, the C# (and indeed
generic .NET) way to retrieve a substring is to use String.Subtring(start,
length) function. However, this is an "Exception-Happy" function... which
throws exceptions for all sorts of things like if the string is smaller than
the length being asked for or hasn't been initialized or whatever.

The classic Left/Mid/Right statements (now in the VisualBasic namespace) on
the other hand are graceful and elegant. Left("smallstr", 30) returns
"smallstr" and doesn't complain that the string is less than 30 characters
long... which is often exactly how you need String.Substring to work.

It's little things like that that C# folks don't miss because they don't
know them. (though even C# users can use the VisualBasic namespace if they
wished or knew about it! ;-) )

"CMM" <cmm@nospam.com> wrote in message
news:uEqY1RPBGHA.2568@TK2MSFTNGP10.phx.gbl...[color=blue]
> As a long time VB programmer (10 years) and a C/C++ programmer before
> that, I do believe the "C" syntax is sometimes more concise than VB (for
> instance I like the intuitive way you cast variables in "C" as oppossed to
> VB.NET's CType(...) or DirectCast(...) methods). However, this is not a
> FUNCTIONAL difference. In fact, in terms of really functional stuff VB is
> in a lot of ways better than C#. One need only look at the sort of
> declarative way you can do Event Handling in forms (using Handles keyword)
> as oppossed to C#'s awkward overuse of delegates and such (which indeed
> are also available to you in VB as well if you want to use them).
>
> But, in the end, really it's a matter of taste I think. If you're a good
> disciplined VB coder then you'll love VB.NET. If you still consider
> yourself a sort of a lightweight VB programmer and need a little structure
> imposed on you then you might want to look at C#.
>
>
> "clarence_rollins" <someone@microsoft.com> wrote in message
> news:%230uIu%23OBGHA.240@TK2MSFTNGP11.phx.gbl...[color=green]
>>I asked the question (which I should have included with my original post)
>> because I am moving from VB6 to either c# or VB. Some of the reasons
>> I've
>> heard for moving to c# instead of VB are: more income, better employment
>> opportunities, complete access to the framework, elegant syntax and
>> professional respect.
>>
>> For me, the first three reasons are compelling enough to study c# instead
>> of
>> VB.
>>
>>
>> "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
>> news:u9p1gwOBGHA.2912@tk2msftngp13.phx.gbl...[color=darkred]
>>> "clarence_rollins" <someone@microsoft.com> schrieb:
>>> > I've read that the framework is completely accessible to c#.
>>> >
>>> > Is that true for VB? If not, what parts of the framework are not
>>> > accessible
>>> > to VB?
>>>
>>> It's completely accessible to VB 2005 too, as it has been since VB.NET[/color]
>> 2002.[color=darkred]
>>>
>>> --
>>> M S Herfried K. Wagner
>>> M V P <URL:http://dotnet.mvps.org/>
>>> V B <URL:http://classicvb.org/petition/>
>>>[/color]
>>
>>[/color]
>
>[/color]


Cor Ligthert [MVP]
Guest
 
Posts: n/a
#7: Dec 20 '05

re: Does VB 2005 have full access to the framework?



CMM
[color=blue]
>However, this is an "Exception-Happy" function...[/color]

Nice short description. I'll try to remember it me.

(Although I don't like the MID because my confusion forever between the zero
and one indexer).

I like more things as the IsDate function as sample for that, it creates a
try{
datetime.parse............}
catch{
return error...}
end try

And is much easier to handle than.

:-)

Cor


Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
#8: Dec 20 '05

re: Does VB 2005 have full access to the framework?


"CMM" <cmm@nospam.com> schrieb:[color=blue]
>I would also add the multitude of methods available in the VisualBasic
>namespace, which duplicate all the classic long standing BASIC statements-
>some of which have been around since 1977. For instance, the C# (and indeed
>generic .NET) way to retrieve a substring is to use String.Subtring(start,
>length) function. However, this is an "Exception-Happy" function... which
>throws exceptions for all sorts of things like if the string is smaller
>than the length being asked for or hasn't been initialized or whatever.
>
> The classic Left/Mid/Right statements (now in the VisualBasic namespace)
> on the other hand are graceful and elegant. Left("smallstr", 30) returns
> "smallstr" and doesn't complain that the string is less than 30 characters
> long... which is often exactly how you need String.Substring to work.
>
> It's little things like that that C# folks don't miss because they don't
> know them. (though even C# users can use the VisualBasic namespace if they
> wished or knew about it! ;-) )[/color]

Exactly. Some C# developers seem to be proud that they do not have a RAD
function library as VB and VFP have. It seems to me that they have never
used VB or VFP...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Cor Ligthert [MVP]
Guest
 
Posts: n/a
#9: Dec 20 '05

re: Does VB 2005 have full access to the framework?


Herfried,
[color=blue]
> Exactly. Some C# developers seem to be proud that they do not have a RAD
> function library as VB and VFP have. It seems to me that they have never
> used VB or VFP...
>[/color]
I know one, who (as far as I remember me) told me once that you are an
amateur if you use the designer part to create a form layout.

(You know him as well).

However C# is of course full of RAD tools, maybe that there are more in
VB.Net however not in the major parts.

Let us not start a C#, VB.Net discussion because some C# or VB.Net
developpers have their own special opinions.

:-)

Cor


Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
#10: Dec 20 '05

re: Does VB 2005 have full access to the framework?


"Cor Ligthert [MVP]" <notmyfirstname@planet.nl> schrieb:[color=blue][color=green]
> > Exactly. Some C# developers seem to be proud that they do not have a
> > RAD
>> function library as VB and VFP have. It seems to me that they have never
>> used VB or VFP...
>>[/color]
> I know one, who (as far as I remember me) told me once that you are an
> amateur if you use the designer part to create a form layout.[/color]

Well, in general I do not comment on such statements, but I believe that's
completely wrong. Typically the UI design should be completely separated
from the code and professional designers should create the forms instead of
developers. By creating forms directly in the code this separation is lost.
[color=blue]
> However C# is of course full of RAD tools, maybe that there are more in
> VB.Net however not in the major parts.[/color]

I believe there are more in VB. Otherwise I'd use C#.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Cor Ligthert [MVP]
Guest
 
Posts: n/a
#11: Dec 20 '05

re: Does VB 2005 have full access to the framework?


Herfried,[color=blue]
>
> I believe there are more in VB. Otherwise I'd use C#.
>
> --[/color]
Whatever you do there will never be a "Dim" in C# and you cannot withouth
that.

Just kidding,

:-)

Cor


Mattias Sjögren
Guest
 
Posts: n/a
#12: Dec 20 '05

re: Does VB 2005 have full access to the framework?


>It's completely accessible to VB 2005 too,

Except when it isn't, such as the handful of members that use
pointers.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
CMM
Guest
 
Posts: n/a
#13: Dec 20 '05

re: Does VB 2005 have full access to the framework?


"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:e3a5F2VBGHA.2840@TK2MSFTNGP12.phx.gbl...
<snip>[color=blue][color=green]
>> However C# is of course full of RAD tools, maybe that there are more in
>> VB.Net however not in the major parts.[/color]
>
> I believe there are more in VB. Otherwise I'd use C#.
>[/color]

Maybe... maybe not. When I started using VB.NET several years ago I missed
(a little bit) the VB6 Tools | Add Procedure tool that provided a pretty
face on creating properties and methods and such. Ironically C# has a pretty
advanced version of this tool (in Class Designer right click on a class and
select Add Method, Add Property, etc.)!!! I never understood why VB.NET
didn't have this!

I'm going to go check right now if 2003 has it! I completely forgot about
that thing. :-)


CMM
Guest
 
Posts: n/a
#14: Dec 20 '05

re: Does VB 2005 have full access to the framework?


"CMM" <cmm@nospam.com> wrote in message
news:%238SxSjbBGHA.2668@TK2MSFTNGP14.phx.gbl...[color=blue]
> I'm going to go check right now if 2003 has it! I completely forgot about
> that thing. :-)[/color]

Correction... I meant to say 2005....
And it doesn't... though I guess the same functionality is achieved via the
Class Diagram Designer. Still, I kinda liked the C# utilities and still
think they should have been in VB first.


CMM
Guest
 
Posts: n/a
#15: Dec 20 '05

re: Does VB 2005 have full access to the framework?


"Mattias Sjögren" <mattias.dont.want.spam@mvps.org> wrote in message
news:OXqiHoZBGHA.532@TK2MSFTNGP15.phx.gbl...[color=blue][color=green]
> >It's completely accessible to VB 2005 too,[/color]
>
> Except when it isn't, such as the handful of members that use
> pointers.[/color]

Although by using the Marshal classes in the framework together with IntPtr
type, even VB.NET can use pointers. :-)


Closed Thread