473,776 Members | 1,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB to .Net migration

Hi,
We are planning to migrate one VB project to .Net. But I have a common
questions. can any one clarify my below questions.
1. Is there is any advantage of using C# than VB.net. I feel both are same
in terms of performance, security and etc., Is it correct?

2. I feel that converting from VB to VB.net is much more easier than VB to
C#. Is it correct?

3. Is there is any free tools available in any site which i can use to
convert it from VB to .Net (ofcourse i will do manual code fix as well).
Thanks in advance
Oct 27 '06 #1
4 1507
Note: Opinions :)

1. Technically, not that I'm aware of; they're both equal, it's what you're
most comfortable with. (http://www.google.com/search?hl=en&l...ntages+to+c%23)
can provide some insight, though most of the top references are a few years
old. The advantage to .NET is that if you have a development team and one
is verse in VB and another in C#, they can still work together without too
much trouble--though standardization is important in an enterprise.

2. Probably, the syntax is somewhat the same from 6.0 to .NET whereas C#'s
formatting and syntax (and some commands) are different.

3. Google is your friend. http://www.google.com/search?hl=en&q=convert+vb+to+c%23
turns up 3,650,000 results today and a few are free online and client-based
tools for the conversion. Something to consider, import your project into
Visual Studio and add the Microsoft.Visua lBasic namespace and then rebuild
from there, finding each part that still calls that namespace, but without
breaking the application (maybe).

You can find information on the namespace at http://msdn2.microsoft.com/en-us/lib...sualbasic.aspx.

Hope this helps. :)

--
David Longnecker
Web Developer
http://blog.tiredstudent.com
Hi,
We are planning to migrate one VB project to .Net. But I have a
common
questions. can any one clarify my below questions.
1. Is there is any advantage of using C# than VB.net. I feel both are
same in terms of performance, security and etc., Is it correct?

2. I feel that converting from VB to VB.net is much more easier than
VB to C#. Is it correct?

3. Is there is any free tools available in any site which i can use to
convert it from VB to .Net (ofcourse i will do manual code fix as
well).

Thanks in advance

Oct 27 '06 #2
Mine are Opinions also:

1. see http://www.codeproject.com/dotnet/CSharpVersusVB.asp

2. The issue with this is that you bring bad habits with you.
Making a clean break to something that doesn't allow bad habits would pay
off more down the road.

3. You really don't want to do this. adodb recordset is no longer the
datatool, but converters will bring it forward.
DataSet, Strongly Typed DataSets, and IDataReaders are the "new" way.

............... ............... ....

I've programmed in VB since VB4/16bit, VB5, VB6. I programmed in VB.NET for
2 or more years.
I"ve programmed in C# for over 3 years.

Yes, I made a living for over 6 years off of VB(classic). While VB.Net is
OO capable, alot of (not all) bring some bad vb6, non OO, habits with them.

My advice is to make the clean break...... and don't try to half way do it.

Also, there are deficiencies in VB.NET (1.1 specifically).
Go here and read the entry from me.
http://groups.google.com/groups/sear...commentary.%22
This is a "concrete" no commentary list. As in , I try to just state the
facts.
"Kannan" <Ka****@discuss ions.microsoft. comwrote in message
news:21******** *************** ***********@mic rosoft.com...
Hi,
We are planning to migrate one VB project to .Net. But I have a common
questions. can any one clarify my below questions.
1. Is there is any advantage of using C# than VB.net. I feel both are same
in terms of performance, security and etc., Is it correct?

2. I feel that converting from VB to VB.net is much more easier than VB to
C#. Is it correct?

3. Is there is any free tools available in any site which i can use to
convert it from VB to .Net (ofcourse i will do manual code fix as well).
Thanks in advance


Oct 27 '06 #3
Regarding #1, you are correct.

Regarding #2, I highly recommend not trying to do 2 conversions at the same
time. Upgrade to VB.NET first (using the upgrade wizard + a lot of blood,
sweat, and tears). Then once the project is happily humming along in VB.NET,
take a look at whether you still want to think about converting to C#
(although as others have mentioned, it won't be for performance reasons).
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
Instant Python: VB to Python converter
"Kannan" wrote:
Hi,
We are planning to migrate one VB project to .Net. But I have a common
questions. can any one clarify my below questions.
1. Is there is any advantage of using C# than VB.net. I feel both are same
in terms of performance, security and etc., Is it correct?

2. I feel that converting from VB to VB.net is much more easier than VB to
C#. Is it correct?

3. Is there is any free tools available in any site which i can use to
convert it from VB to .Net (ofcourse i will do manual code fix as well).
Thanks in advance

Oct 27 '06 #4

"Kannan" wrote...
We are planning to migrate one VB project to .Net.
But I have a common questions. can any one clarify
my below questions.
You will probably have many different answers to your questions, but here's
my 2c.
1. Is there is any advantage of using C# than VB.net.
That depends on what you mean by "advantage" .
I feel both are same in terms of performance, security
and etc., Is it correct?
In general terms, yes.
2. I feel that converting from VB to VB.net is much more easier
than VB to C#. Is it correct?
Yes and no, and I would lean more towards a No...

For some basic constructs it should be very easy to just "cut'n paste" the
old code, but for the rest, where the real difference between old VB and
VB.Net lies, many developers say that it's better to change the language
altogether, so they don't *think* that VB.NET is just an upgrade of old VB.
3. Is there is any free tools available in any site which i can use to
convert it from VB to .Net (ofcourse i will do manual code fix as well).
There are *many* free tools for it out there, but the change from old VB to
..NET is not only a change of languages, it's also a change in the thinking
on how to program. These tools don't do the OOAD[*] for you...

To convert old VB to .NET in a way that makes use of .NET fully, I would
suggest that you do *most* of it manually. Start with OOAD first, to make a
skeleton of what the application should look like in terms of classes,
methods, etc.

Then you can try to "map" the old code to the new design, and maybe use
those tools to convert the parts of the old code that still are useful "bit
by bit".

But you will also probably see, that it's a possibility that in the end
there's not much of the old code that will be needed in the "converted"
application...

A common mistake for many of those that switch from another language, is to
try to fit the old way of doing things into the new language/framework,
instead of focusing on what you want the application to do, and make use of
the new language/framework's advantages to the full.
/// Bjorn A
[*] OOAD - Object-oriented Analysis and Design.

Oct 29 '06 #5

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

Similar topics

9
2130
by: Paddy McCarthy | last post by:
Frustrated at being prevented from using Python at work I went gunning for Perl. Time to roll out some useless Google statistics to make me feel better Google Phrase count ------------- ----- "prefer perl to python" 26 "prefers perl to python" 0
4
19994
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
11
9532
by: Jep | last post by:
Any help or advice appreciated. We have just installed and configured a new DB2 v.8.1 with latest FixPack. Just a few days later it dies and now we have a DB that is totally unusable. - - - - It went all wrong one morning when connecting gave us this msg:
4
3987
by: Abram Friesen | last post by:
Hi, I'm a developer for a software application vendor, and our application makes use of a customer-maintained Oracle 8i/9i database. We've had a customer request to support DB2 database, and I'm looking into the feasibility of migration. Our application runs on NT Server and, the DB2 database would be in some cases on a separate AIX machine, in other cases on an AS/400. There are two problems we are running into, both relating to our...
1
2072
by: sac | last post by:
I am using DB2 v8.1 on UNIX. A few weeks ago the DBAs carried out node migration activity on the database. After the node migration I observed that the queries that execute on temporary tables show extreme poor performance. One of the query was partly optimized by declaring a partitioning key on the temporary table. However it still takes longer than before the node migration. I would appreciate if I could get information on the...
1
2681
by: rob | last post by:
Dear All, I have a very small test project to convert asp to asp.net using the Microsoft/Artisan ASP to ASP.NET Migration Assistant (http://msdn.microsoft.com/asp.net/using/migrating/aspmig/aspmigasst/default ..aspx). Everything works fine when my include file is in the same directory as the asp file that includes the include file. What I am having trouble with is that the migration tool doesn't see my include file when it resids in a...
1
3875
by: Bonggoy Cruz | last post by:
We have a fairly big size ASP.NET web application that was written VB.NET. We are in the process converting the web project. We used the migration wizard included in VS 2005. I followed step by step guide outlined in here: http://msdn.microsoft.com/asp.net/reference/migration/upgrade/default.aspx?pull=/library/en-us/dnaspp/html/webprojectsvs05.asp. I was able to convert the project without any problem. Compiling and building them is...
60
4941
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the 'target' programming community herein) to get some community input and verify (or not) the following two statements. Few programmers (3 to7%) UNDERSTAND 'Strategic Functional Migration
9
4204
by: Troels Arvin | last post by:
At work, some people have found IBM's Migration Toolkit (MTK) to be a nice tool for copying data from one table (in another DBMS product) to DB2. Now, they want to do the same thing from one DB2 database to another DB2 database. - But MTK (surprisingly) doesn't seem to support DB2-DB2 copies. These are non-regular, ad-hoc tasks, performed by users without administrative rights (and generally somewhat annoyed by command line...
3
4642
Frinavale
by: Frinavale | last post by:
I have been researching the best approach to migrating a VB6 application into a VB.NET application. There is a lot of information out there but most of it recommends that you "train in the migration process before jumping into it". One site even recommends that this training process should take at least 2-3 weeks. I'm not sure how you can train for such a process...but maybe I'll find something while I'm researching. I was wondering if anyone...
0
9464
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10120
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9923
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7471
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6722
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5367
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5493
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4031
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2860
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.