Results 1 to 32 of 32

Thread: Any VB6 programmers trying to learn C#?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Question Any VB6 programmers trying to learn C#?

    I was just wondering if there is any of you VB6 guys who want to learn C# rather than VB.Net. If so, can you tell me your reasons for doing so?

    Umm, and in one of the books I was reading it suggested that if you are familiar with VB syntax, just stick with VB, and if you like C++ syntax then learn C#. Is it a good reason?!! There should be more major differences.
    Also, is C# going to be more popular than VB.Net?

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    o o o finally someone asks

    i been programming in vb for umm 5 years or so (on and off)
    when .net came out, i decided i have had it with vb and wanted to learn c#
    (yes i am familiar with c++ syntax)
    and the reason why i went with c# is because i feel that it will hold a higher value to say "i know c#" then " i know vb.net"
    and it really isnt that hard anyways, i just got started few weeks ago, and i am already confident to build a commercial app with c# (already started by the way)
    in my HUMBLE opinion, vb is for wusses(Cander is a wuss)

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    how about learning both?

  4. #4
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    once you learn c# you learned vb (thats if you know vb from before)
    all the things you will learn doing c# will include all the new things in vb
    so if you learn c#, you already are learning all the new features of the vb.net over vb6

  5. #5
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    They are so close to simliar that C# i find is pretty much as easy as VB..just learn the syntax. C# has the benefit of doing some more lower level things like bit shifting, unsigned values, overloading operators(which is a pretty interesting idea), and stuff like that which I am finding useful in some scenarios which is why I am learning C# so I can do such operations.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  6. #6
    yaz
    Guest

    not counting pointer use

    usable in vb anyway some say

  7. #7
    Lively Member Fool's Avatar
    Join Date
    Sep 2001
    Location
    Glen Allen, VA
    Posts
    79
    I know some VB6 but I'm more of a Java guy than anything. C# is something I'm looking into, but I'm still learning so much about Java I don't know if I have any time to screw around with C#. I still have a class in C before I graduate college next year.

  8. #8
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    If you like Java, you will love C#. The syntax will also be very familiar, so the transition will be smooth.
    Dont gain the world and lose your soul

  9. #9
    Addicted Member Mih_Flyer's Avatar
    Join Date
    Mar 2000
    Location
    some place there
    Posts
    241
    i think learning any one of .NET languages will make it easier to learn another .NET language...coz the .NET framework is unique

  10. #10
    Fanatic Member Wen Lie's Avatar
    Join Date
    Jul 1999
    Location
    Singapore
    Posts
    524
    I'd love to learn c#
    but oh man... I'm not so familiar with C++ language.
    coz I come from VB6 programming


    Any help ?

    Wille
    Regards,
    [-w-]

  11. #11
    Lively Member Fool's Avatar
    Join Date
    Sep 2001
    Location
    Glen Allen, VA
    Posts
    79
    Originally posted by DevGrp
    If you like Java, you will love C#. The syntax will also be very familiar, so the transition will be smooth.
    I'm installing VS.NET right now. Hopefully I'll have a little bit of time to poke around in C#.

  12. #12
    Fanatic Member Wen Lie's Avatar
    Join Date
    Jul 1999
    Location
    Singapore
    Posts
    524
    what about someone like me who never used to Java language ?

    Wille
    Regards,
    [-w-]

  13. #13
    Addicted Member donut's Avatar
    Join Date
    Mar 2001
    Location
    London, UK
    Posts
    165
    Wen Lie, get a book on it

    i don't think the C-style syntax takes very long to get to grips with. you should get used to it after playing around with it a bit.

  14. #14

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    I'm sticking with VB
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  15. #15

  16. #16
    Addicted Member ender_pete's Avatar
    Join Date
    Aug 2000
    Location
    Virginia, United States
    Posts
    131
    dude ive been programming in vb for almost 7 years and i think C# owns vb.net i started learning vb.net but then got a C# book out of curiosity and i havent gone back to vb.net
    Im still doing vb.net work at work but my fun coding is done in C#
    ender_pete
    C#,VS.NET Ent Arch, vb6 ee sp5,html,vbscript,jscript,
    xml,dhtml,delphi,c++,vc++,java,cgi,php, python, ada(so ancient) ,adasage(also ancient) and others i can't remember.....

  17. #17
    Hyperactive Member kleptos's Avatar
    Join Date
    Aug 2001
    Location
    The Dark Carnival
    Posts
    346
    As much as i hate to say this, i might end up going over the the dark side. VB.Net is just not as fun as when i started, and if i read a few books right, C# can do more then VB.NET. I have been using VBV 6.0 for a while now, and C# just looks more interesting.
    ..::[kleptos]::..
    • Database Administrator (MSSQL 2000)
    • Application Developer (C#)
    • Web Developer (ASP.NET)


  18. #18
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    Here's a bear minimum guide for going from VB to C# that lists the main differences for the total VB-only programmer:

    http://www.4guysfromrolla.com/webtech/012702-1.shtml
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  19. #19
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    Cool well umm

    I just decided to try and pick up C# today (oh, vb6 for 5 years & c++ for about 6 months) and I am having some trouble so far but it doesn't seem that much different from vb.net. I mean if you know JavaScript or ActionScript it's almost the same as knowing C++ syntax anyway.

    Personal I think the two languages(vb.net and C#) are close enough that anybody who wanted to could move back and forth easy enough. I mean it's not like it's like a whole different ball game anymore.

    imports == using or does using = imports wow it's mind boggling....
    Magiaus

    If I helped give me some points.

  20. #20
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    The main 'gottcha' most VB people will keep falling over is utterly trivial. It's the case-sensitivity.

    I guess it's a matter of the habits you get into. I had to maintain some ancient Clipper code the other day (yes, we have some tight-wad customers still running DOS!) and my VB habits made me keep putting 'then' on the end of the 'if' statements, which of course Clipper does not like.

    It's more a matter of instinct than knowledge, like when you are in a country where they drive on the other side of the road and you meet somebody driving towards you on a single lane dirt track. Your instincts can easily make you pull to the wrong side.
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  21. #21
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    am totally moving to c#
    and case sensitivity has been probably the biggest issue for me right now, always forget am not vbing..
    but now when i try to program in vb, i use c# syntax.. kinda annyoing to use both at the same time

  22. #22
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    thats what i am talking about
    i would NEVER think about using vb.net
    but i still have to write a new app in vb6, and finish one i started
    so its a pain

  23. #23
    Hyperactive Member kleptos's Avatar
    Join Date
    Aug 2001
    Location
    The Dark Carnival
    Posts
    346
    Problem for me is the darn little semi-colon, thats my only problem thus far, the semi-colon....
    ..::[kleptos]::..
    • Database Administrator (MSSQL 2000)
    • Application Developer (C#)
    • Web Developer (ASP.NET)


  24. #24
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    I keep getting done in the butt by knowing when to instantiate a class or when to just call the class as is depending on whether your method is static or not.. and of course that freaking semi-colon...
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  25. #25

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    well, I have C++ syntax for two reasons. 1- too many semi colons! 2- it's damn case sensitive!!!!
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  26. #26
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    But it's a small price to pay for the feeling of superiority you will have over vb.net programmers. (Bound to get flamed for that.)
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  27. #27
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    Originally posted by BrianHawley
    But it's a small price to pay for the feeling of superiority you will have over vb.net programmers. (Bound to get flamed for that.)
    i got your back, no one darez

  28. #28
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    I think your reasons for calling VB programmers "wuss" are silly. I see hardly any major differences in the capabilities of both languages. As for pointers, they stray from the framework's garbage collector. Flame on.

    Please rate my post.

  29. #29
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    Hey, there was a grin on the end.

    I'm up to speed on vb.net but I'm just learning C# - so I guess I'm still a wuss. Probably I'll use both for a while, until I find which I prefer. Tending to C# at the moment, but that may just be the novelty.

    I know it's an irrational prejudice, but I think prospective clients, particularly muggles (non-technicals), may regard prospective C# as more 'professional' than vb. There is already some evidence that our customers lean towards C#. We have put out a few quotes where we have proposed either C# or vb.net as the development language and they have gone for C# 100% of the time. Don't know if this proves anything, except perhaps the ignorance of the customers.

    One interesting point: theoretically you can write something in vb.net, compile to MIL, then decompile back to C# source. Lose your comments of course. Anybody tried it?
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  30. #30
    hellswraith
    Guest
    One interesting point: theoretically you can write something in vb.net, compile to MIL, then decompile back to C# source. Lose your comments of course. Anybody tried it?
    I haven't done it myself, but it is possible from what I have read. There are people comming out with obfuscators to help solve this problem. http://www.preemptive.com/dotfuscator/index.html

    We are all now like the Java programmers that have to find tricks to keep the code from getting out.

  31. #31
    Lively Member Nator's Avatar
    Join Date
    Nov 1999
    Location
    East Larryville, GA
    Posts
    80
    That's interesting in regards to the customers preferring C# over VB. I guess that has more to do with the novelty of name "C#". If MS changed VB's name but left the actual language as is, I think you would see the same thing. I could also see customers hearing TheApp was written in C++ and see it a negative. My customers really only care that the product I give them works. I've picked up C# simply by translating examples. At this point, I feel pretty comfortable in either environment. Both languages have features that I wish both had. Example: VB has the With statement. C# has the bracketed string builder ("My string {0} is cool", theString)

  32. #32
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    I agree it's all in the mind. MS did themselves a great disservice by not renaming BASIC early on. What non-technical manager would want a mission critical application written in "beginners all- purpose symbolic instruction code".

    Languages and OS's evolve. Early Windows was an extension to DOS, which was a port of QDOS, which stood for Quick and Dirty Operating System. They were pretty quick to lose the 'Q' and change the 'D' to Disk.
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width