Jump to content
Xtreme .Net Talk

Search the Community

Showing results for tags 'findstring'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • New Member at Xtreme .Net Talk?
    • Meet and Greet
    • Announcements
  • .NET
    • General
    • Windows Forms
    • ASP.NET
    • Directory / File IO / Registry
    • Database / XML / Reporting
    • Network
    • Graphics and Multimedia
    • Interoperation / Office Integration
    • Deployment
    • Regular Expressions
    • Syntax Specific
  • Knowledge Base
    • Tutors Corner
    • Code Library
    • Quick Tips
  • Xtreme .Net Talk Members Area
    • Water Cooler
    • Suggestions, Bugs, and Comments

Blogs

There are no results to display.

Categories

  • Code Samples
  • Tutorials & Guides
  • Articles
  • Code Downloads

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Location


Occupation


Visual Studio .NET Version


.NET Preferred Language


Skype


Facebook


Twitter ( X )

Found 1 result

  1. I am using VB.NET 2010 and having an issue with selecting the appropriate item in the combobox programmatically with info from the data base. The combobox contains the following items: AAA AA A B C D I have verified that there are no leading or trailing spaces in the combobox items. When the record in the database contains "A", the FindString finds the AAA record. If the database contains "B", "C" or "D", it finds the correct item. Here is my code that gives an index of 0 to show "AAA: lblSingles.Text = "A" ' Simulate data from database Dim index As Integer index = cboSingles.FindString(lblSingles.Text) cboSingles.SelectedIndex = index Change "A" to "B" and the index is now 3 which is correct. lblSingles.Text = "B" ' Simulate data from database Dim index As Integer index = cboSingles.FindString(lblSingles.Text) cboSingles.SelectedIndex = index The user requires the combobox items to be listed in the order stated. Any suggests are greatly appreciated!
×
×
  • Create New...