Need advice-VB.NET to C# transition

R

rbutch

it looks like i'm in a C# world here in houston,Texas and i'm gonna have to make the plunge after doing and really enjoying VB.NET with winforms and web forms for the last couple of years.
yes, even picked up some javascript along the way.
my question is (since there's no classes being held in this area @ the community colleges during the summer on this subj), does anyone have any suggestions for some really great books that'll make the VB.NET to C# transition any easier???
i'm really gonna miss my global variables.

thanks for any advice
rik

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
M

Mythran

rik butcher said:
it looks like i'm in a C# world here in houston,Texas and i'm gonna have
to make the plunge after doing and really enjoying VB.NET with winforms
and web forms for the last couple of years.
yes, even picked up some javascript along the way.
my question is (since there's no classes being held in this area @ the
community colleges during the summer on this subj), does anyone have any
suggestions for some really great books that'll make the VB.NET to C#
transition any easier???
i'm really gonna miss my global variables.

thanks for any advice
rik

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...

eeek! Global Variables?!?

Actually, if you learn easily teaching yourself, there are plenty of C#
tutorials on the internet. Check some of those out and also look at the
MSDN documentation for samples.

Also, try plunging in on the simple Hello World applications :) Those are
quick to set up and you learn by doing. Just little changes to it to break
it and then see the error messages you get and fix it...yadda yadda...that's
how I learn new languages...all except Cobol...being that I learned Cobol on
production applications (making minor changes)....if I broke something
there...I'd be in trouble heh :)

Mythran
 
W

WJ

If you have been doing VB.Net for two years, it is not hard to translate
into c#. You may be interested in looking at this link see what you think:
http://msdn.microsoft.com/library/d...us/vsintro7/html/vxgrfLanguageEquivalents.asp

BTW, I never coded a single line in VB in my life, but now I have to convert
all VB applications (yes, VB of the 20th century ASP :), not ASP.Net) to
c# ! For the 1st time in my life, I attempted to convert a Windows app
written VB (v5). I ended up tossing the entire source and wrote the app from
scratch using c# ! So, it looks as if its (VB) days are numbered ?

John
 
M

Mark Rae

i'm really gonna miss my global variables.

I'm gonna get seriously flamed for this, but I don't care 'cos it's fun...

1) Add a new class called CGlobalVariables.cs

2) Delete all the default code and add the following:

using System;

namespace GlobalVariables
{
public sealed class CGlobalVariables
{
public static string gstrFirstGlobalVariable = "Hello";
public static string gstrSecondGlobalVariable = "world";
public static bool blnThisIsActuallyPrettyStupid = true;
public static int intNumberOfPeopleWhoShouldDoThis = 0;
}
}

3) Write the following somewhere else in your app:

string strGlobals1 = CGlobalVariables.gstrFirstGlobalVariable;
string strGlobals2 = CGlobalVariables.gstrSecondGlobalVariable;
string strGlobals = strGlobals1 + " " + strGlobals2 + "!";

Just as a bit of fun. I'm not advocating you do this, just showing you what
is possible in C#...
 
R

rbutch

thanks guys, i appreciate the advice.
hopefully it'll be a smooth transition.
i've been doin a few rudimentary things today with no problem.
if i can just stop typing DIM

thanks again
rik

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
E

Earl

VB apps are almost universally unable to be "converted" to VB.Net. What a
waste of time for the developers and indeed on Microsoft's part to have an
"update wizard" (think of the Wizard of Oz when you read that term as it
relates to VB-VB.Net). Even modest sized apps will have to be rewritten from
scratch.

Incidentally, how did we end up in adonet forum with this topic ....?
 
W

WJ

Earl said:
VB apps are almost universally unable to be "converted" to VB.Net.

Yes, you are right. Now a day, all I need to do is to know the "name" of the
VB application then head straight to the users of the app.
Incidentally, how did we end up in adonet forum with this topic ....?
May be the original poster was thinking deep into DB app...?

John
 

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

Similar Threads

Databinder.eval Formatting 1
ASP.NET vs VB.NET 4
FTP a text file 3
another obj ref error/ need help here 5
window.open 2
Export XML w/XSL 1
Pass Javascript vars to global vars in asp.net 1
max Form Height 3

Top