Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8234823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:36:47+00:00 2026-06-07T18:36:47+00:00

I am converting VB6 to VB.NET using VS2010 When I was converting the code,

  • 0

I am converting VB6 to VB.NET using VS2010

When I was converting the code, I found something that I don’t understand the meaning of what the code is doing and getting and how to convert it well.

i = 0

While Not rd.EOF

        cobTmp.Items.Insert(i, rd.Fields("d").Value)
        VB6.SetItemData(cobTmp, i, rd.Fields("r").Value)
        If rd.Fields("r").Value = "1234" Then
            intloc1234 = i
        End If
        rd.MoveNext()
        Debug.Print(VB6.TabLayout(VB6.GetItemData(cobTmp, i), VB6.GetItemString(cobTmp, i)))
        i = i + 1
    End While

How can I handle this code well and for this line:

Debug.Print(VB6.TabLayout(VB6.GetItemData(cobTmp, i), VB6.GetItemString(cobTmp, i)))

Can I use cobTmp.item(i) to replace VB6.GetItemData(cobTmp, i)?

How about VB6.TabLayout??

I know these can be ignored, but I want to do it better.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T18:36:49+00:00Added an answer on June 7, 2026 at 6:36 pm

    Regarding GetItemData, according to Microsoft Support:

    In Visual Basic 6.0, the ItemData property for a ListBox or ComboBox control could be set at design time in the Properties window to associate an Integer with a ListBox or ComboBox item. In Visual Basic 2010, the ItemData property no longer exists; the GetItemData and SetItemData methods can be used to emulate the behavior of ItemData.

    Regarding TabLayout, according to this Microsoft Support Article:

    In Visual Basic 6.0, the Debug.Print method had an outputlist parameter that specified how output was formatted in the Immediate window. This function is used by the upgrade tools to translate the outputlist parameter into a string for display in the Immediate window.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having trouble converting some code from VB6 to VB.NET (I don't have
I have a VB6 application that I am converting to .net. I am doing
I have some VB6 code that I am converting to VB.net and came across
I'm converting a VB6 application to VB.Net that draws on picture boxes. Naturally I
I'm converting a VB6 dll to VB.Net using Visual Studio 2008 Express. I want
I have a VB6 application that I am converting to .Net in phases. The
I am converting an old Vb6 solution to .net 2.0 in vs2010. I've been
In the middle of converting VB6 code to VB.NET, I need to replace the
I am converting an application originally written in vb6 to vb.net. One of the
I am trying to convert VB6 code to c# and I ran into this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.