Welcome to our forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Forum Statistics

  • Forum Members:
  • Total Threads:
  • Total Posts: 14
There are 1 users currently browsing forums.
Visual Basic Programming This area is for talking about programming with visual basic.

Reply
  #1  
Old 05-15-2007
hiranya's Avatar
A Strider In The IT World
 
Join Date: Jan 2007
Location: Sri Lanka
Posts: 37
Rep Power: 0
hiranya is on a distinguished road
Smile VB vs Visual C#

Hi folks,

I'm currenly learning visual C# and I have found it prettey amazing and exciting. I'm also thinking about learning VB in the near future. Can somebody tell me what are the features available in VB which are not usually present in Visual C#?

Regards
Reply With Quote
  #2  
Old 05-15-2007
I'm cacographic!
 
Join Date: Apr 2006
Location: Texas, USA
Age: 18
Posts: 1,665
Rep Power: 6
ddreier is on a distinguished road
Re: VB vs Visual C#

To my knoweldge, Visual/C# is really OOP based. (right?)
Reply With Quote
  #3  
Old 05-16-2007
Mike Tomasello's Avatar
 
Join Date: Dec 2006
Location: University of York, UK
Age: 20
Posts: 1,892
Rep Power: 5
Mike Tomasello is on a distinguished road
Re: VB vs Visual C#

That depends if you are talking about the same version of VB and C#. If they are the same version (i.e. both from Visual Studio 200x) then they have a lot of shared features.

Still, there are big differences. Most of them are outlined on the Wp page. The one that always annoyed me was that C# doesn't have access to the 'My' namespace. I still use C# over VB :P

Mike
Reply With Quote
  #4  
Old 05-16-2007
Slackware FTW
 
Join Date: Dec 2006
Location: London
Posts: 47
Rep Power: 0
iZaP is on a distinguished road
Re: VB vs Visual C#

as far as i know vb is easier to handle for people who are new to programming ;P like me ;D so i started with vb :>
Reply With Quote
  #5  
Old 05-16-2007
Mike Tomasello's Avatar
 
Join Date: Dec 2006
Location: University of York, UK
Age: 20
Posts: 1,892
Rep Power: 5
Mike Tomasello is on a distinguished road
Re: VB vs Visual C#

Again, that depends on the difference in version. VB6 was a lot more loosely typed than VB.NET, and that's really the only thing that makes it more newbie friendly (in my opinion).

Mike
Reply With Quote
  #6  
Old 05-16-2007
gorda001's Avatar
This user is deprecated.
 
Join Date: Jun 2005
Location: <0x79a3f6>
Posts: 5,064
Rep Power: 11
gorda001 is on a distinguished road
Re: VB vs Visual C#

It really depends on personal preference. Personally, I would choose neither. C# has an arrogant compiler and VB's syntax can be a mess (I've never really coded in it BTW so don't quote me, it just looks that way)

I would say that a typing system is actually more suited to newbs than experianced programmers (it helps them find errors). It does tend to get in the way. Plus, in C#, you can't get rid of it or shut it up without a cast which gets tedious.

Quote:
Still, there are big differences. Most of them are outlined on the Wp page. The one that always annoyed me was that C# doesn't have access to the 'My' namespace. I still use C# over VB :P
It does. Just use this instead of my

Last edited by gorda001; 05-16-2007 at 10:10 AM.
Reply With Quote
  #7  
Old 05-16-2007
Mike Tomasello's Avatar
 
Join Date: Dec 2006
Location: University of York, UK
Age: 20
Posts: 1,892
Rep Power: 5
Mike Tomasello is on a distinguished road
Re: VB vs Visual C#

Quote:
gorda001 originally posted: View Post
I would say that a typing system is actually more suited to newbs than experianced programmers (it helps them find errors). It does tend to get in the way. Plus, in C#, you can't get rid of it or shut it up without a cast which gets tedious.
I disagree. When someone tries to MsgBox an Integer and get an error it doesn't help them find errors. It's more likely to hinder that because many VB6 programmers tend to use MsgBox rather than the debug tools. Imagine PHP if you had to keep converting your ints to strings and strings to ints (hello Int.Parse and object.ToString!).

Quote:
gorda001 originally posted: View Post
It does. Just use this instead of my
No, it doesn't. this and My allow you to accomplish similar tasks (in a roundabout fashion; this is like just learning the framework - heck, you should probably do that anyway), but they are a far cry away from eachother.

Mike
Reply With Quote
  #8  
Old 05-16-2007
Calamitie's Avatar
I'm seriously a ****.
 
Join Date: Feb 2005
Location: Moodles, UK
Posts: 2,450
Rep Power: 8
Calamitie will become famous soon enough
Re: VB vs Visual C#

Visual Basic 6 keeps things really simple and easy to understand (probably not deliberately ) whereas, when I tried, VB 2005, although based on VB, seems to make things more complex and hard to understand.

Unfortunately, I can only speak for VB6 and VB.NET (not C#), but if you were going to learn VB, I would recommend VB.NET (newer) if you can learn it, or VB6 if you find it hard (and if you want an easier way to network programs).
Reply With Quote
  #9  
Old 05-16-2007
gorda001's Avatar
This user is deprecated.
 
Join Date: Jun 2005
Location: <0x79a3f6>
Posts: 5,064
Rep Power: 11
gorda001 is on a distinguished road
Re: VB vs Visual C#

Quote:
I disagree. When someone tries to MsgBox an Integer and get an error it doesn't help them find errors. It's more likely to hinder that because many VB6 programmers tend to use MsgBox rather than the debug tools. Imagine PHP if you had to keep converting your ints to strings and strings to ints (hello Int.Parse and object.ToString!).
You are talking about weak typing, I am talking about dynamic typing.

But then it comes down to what you are used to and personal preference. You are a PHP user so you are used to a Dynamic and Weakly typed language. I am an ObjC user so I am used to a Dynamic and Strongly typed language. A C++ user would be used to a Static and Strongly typed language. There is no langage to suit everybody.
Reply With Quote
  #10  
Old 05-16-2007
GrantThomas's Avatar
Mr. Disappointment
 
Join Date: May 2006
Location: Newcastle Upon Tyne, England
Age: 25
Posts: 790
Rep Power: 5
GrantThomas is on a distinguished road
Re: VB vs Visual C#

Quote:
gorda001 originally posted:
It does. Just use this instead of my


I strongly disagree. this merely refers to the current instance of the object whareas the My namespace contains many levels of objects which are gathered from the framework in such a way to make it easier for VB.NET programmers to access them.

All of the same information can be gathered in C#, its just that it may be hidden in a class you dont know of or have not used.

Grant
Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ dynamic struct array allocation Angelo C and C++ Programming 9 02-04-2007 04:11 PM
what does this mean --> cc++/Socket.h??? AsianCutie C and C++ Programming 15 06-27-2005 12:47 AM
A Baker's Dozen: Thirteen Things You Should Know Before Porting Your Visual C++ .NET Programs to Visual Studio 2005 YoungCoder Articles, Tutorials, and Guides 0 10-21-2004 05:08 PM
visual basic - Herosbane Articles, Tutorials, and Guides 3 08-31-2004 05:19 PM