Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 6th, 2004, 06:12 AM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Convert VB to C# code

CODE IN VB

Dim rsGet As New adodb.Recordset
Dim sListData As String
Set rsGet = ExD.GetAllsLanguageId, "TBL", "cbo")

While Not rsGet.EOF()
sListData = rsGet("item_text") & Space(50) & "," & rsGet("item_value")
Me.cbo.AddItem sListData
rsGet.MoveNext
Wend
    Set rsGet= Nothing
    Exit Sub

CAN ANYONE ONE TELL ME TO CONVERT THIS IN C#

 
Old February 26th, 2004, 04:58 PM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can try this site:

http://www.ragingsmurf.com/vbcsharpconverter.aspx

I used it a few times and it seems to work OK.

 
Old March 1st, 2004, 11:45 PM
Authorized User
 
Join Date: Mar 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You don't want to do this stuff by hand - Instant C# (www.instantcsharp.com) does a good job of converting, but I think it needs to be VB.NET code, not VB6 as you have there.








Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me i must convert Code vb to C# pla_2 C# 3 October 14th, 2006 12:54 AM
convert dsr file from vb to vb.net Shashi001 VB Components 1 September 22nd, 2006 12:24 PM
Help me convert C# to VB minhtri Pro VB.NET 2002/2003 1 June 8th, 2006 01:32 PM
convert vba code to vb tommy03 VB How-To 3 February 23rd, 2005 02:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.