Tuesday, January 10, 2012

Once again I'm a Codeproject MVP. Yes I won the award also on last year.
Thanks to Chris & CP team, Lounge people, GIT people, Q/A section people, other forum people.
I have received the mail today morning. Please see below
Hi thatraja,
Congratulations!
In recognition of your outstanding contributions to the community, either through Quick Answers, the forums or through articles and tips, you have been awarded CodeProject MVP status for 2012.
Your MVP status will be recognized through the MVP icon you will have next to your forum postings as well as a notice in your member profile. Also, as formal recognition of your award status we will be sending out certificates to all our MVPs. To help ensure we get your details right could you please email your full name and postal address to Aimee Douglass at aimee@codeproject.com.
Again, Thank you for all the help you have provided to the community.
Chris Maunder
The Code Project
http://www.codeproject.com
About Code Project MVP
Those who have spent their time answering questions in the forums and writing great articles. MVP status is awarded annually based on ones contributions, and the feedback of the other members.
There are over 8 millions of Codeproject members, only 40 MVPs on every year, Really it's a great honour. Here list of winners below.
Christian Graus
John Simmons / outlaw programmer
Mark Nischalke
Nishant Sivakumar
Espen Harlinn
Mehdi Gholam
Pete O'Hanlon
Dave Kreskowiak
Thierry Parent
Sacha Barber
Luc Pattyn
Richard MacCutchan
Jani Giannoudis
Pavel Torgashov
Jovan Popovic
CPallini
Sandeep Mewara
SAKryukov
Wayne Ye
Nick Polyak
Niladri_Biswas
Marcelo Ricardo de Oliveira
Manfred R. Bihy
Mika Wendelius
Dave Kerr
Prerak Patel
Abhinav S
Dr. Song Li
Colin Eberhardt
Ciumac Sergiu
Paulo Zemek
OriginalGriff
_ Kunal Chowdhury _
thatraja
Halil ibrahim Kalkan
Meshack Musundi
Kanasz Robert
Shai Raiten
RaviRanjankr
Bojan Banko
Congrats to all other MVPs.
And thanks to all people who helped me.
Cheers! :)
Monday, January 2, 2012
Introduction
This post explains how to convert the code in .NET.
Background
In lot of programming forums, you can find some questions related to code conversion. For example an enquirer asking a question in VB.NET & answerer(s) posting solution(s) but unfortunately its in C#(instead of VB.NET). After seeing the solution(s), the enquirer replying some thing like "My project developed in VB.NET but your solution is in C#, blah blah blah ....". Then answerer's reply will be something like "You can convert the code, search in web for code convertors". But sometimes Enquirer wants an offline convertor(Reason may be the Internet connection). So this simple post would be useful for them.
SharpDevelop
It's an Open Source Development Environment for .NET. You can download the tool here. Also take a look at the features of SharpDevelop & they have forum so if you have any questions that will help you. Using this you can convert the code.
Supported Programming Languages
For Code convertion, currently SharpDevelop supports the following languages.
- C#
- VB.NET
- Boo
- Python
- Ruby
Code Convertion
After installation, create a blank project & write some code. Here I have written some C# code. Now click Tools menu, select option Convert code to & select the language which you want(Here I have selected VB.NET). That's all. Now the code has been converted & generated in new file.
C# Code

VB.NET Code

Online Convertors
- codeconverter.sharpdevelop.net
- www.developerfusion.com
- www.carlosag.net
- www.telerik.com
- www.all4dotnet.com
Offline Convertors
Addin(s)/Web services
Addins created from online code conversion Web services.
A Visual Studio Add-In That Converts C# Code To Visual Basic
Before Conversion
Make sure your code is working, for example if you miss single { or anyother things then the conversion will show you syntax error(s) instead of output. See below.
The converter uses SharpDevelop's NRefactory to perform the conversion. For the conversion to work properly, you have to paste a full class or source code file because we don't do "magic" RegEx's or string replacement - our code converter uses a full blown parser, and that's why the source code must be valid.
Even convertors won't convert the code 100%. The main reason is some features doesn't exist in particular language, see the Further reading section. Even Commertial tools convert the code only 99% Or probably you need to code rewrite.
Code Rewrite
Read about Rewrite (programming) & check this post Rewrite Code From Scratch which contains good & bad reasons to avoid/code-rewrite.
Multiple Programming Languages
Alternatively you can use both code in your application if you don't want to convert the code, see below.
- Walkthrough: Using Multiple Programming Languages in a Web Site Project
- Walkthrough: Using Shared Code in Web Sites in Visual Web Developer
- Shared Code Folders in ASP.NET Web Projects
- Shared Code Folders in ASP.NET Web Sites
VB6 to .NET
VB6 is obsolete by a decade and was always horrible.[^]
Why is anyone still using VB6 in 2011 ? Self loathing ? A dinosaur who refused to move with the times ?[^]
VB6 is dead and was always a joke. Why are you using it ? [^]
In VS, You have a wizard to convert VB6 to VB.NET.
AFAIK, There is no freeware to convert VB6 to VB.NET. BTW even if you convert the code using convertor, it won't do that 100%, you must need to do some/more manual changes. Particularly if you used any 3rd party components then it will be a big headache because they(3rd parties) always changing the things in every version, so the VB6 code will show syntax error(s) in VB.NET.
Check this bunch.
- Articles
- Tutorials
- EBook
Further Reading
- Language Equivalents
- Comparison of C Sharp and Visual Basic .NET
- "Differences Between Visual Basic .NET and Visual C# .NET" white paper
- Visual Basic 6.0 Resource Center
CodeProject
Labels: .NET, C#, Code conversion, Codeproject, Open source, VB.NET
Sunday, January 1, 2012
I just created this blog to share something worthy(Programming & other things). And this is my first post. Hope I'll post here more frequently.
BTW Happy new year wishes to all!
RAJA [thatraja]
Labels: General