Creating a QWERTY Keyboard String Array RRS feed

  • Question

  • User1394630246 posted

     I have the following that creates an array of the alphabet (A-Z)

       _Alphabet = New ArrayList()

       For i As Integer = 65 To 91 - 1



    I want to populate this into some buttons in a qwert keyboard manner. However my array is in A-Z list. Is there a way to populate the list in a qwerty fashion?

    Monday, November 23, 2009 7:34 AM


  • User-952121411 posted

     I have never seen anything inherent to .NET to sort any type of object in a "QWERTY" order.  I think you are going to need to write a custom method or class that will do this for you.  It will not be that hard to create, and once you do you could pass in the ArrayList to be sorted.  Idea of code below:

    'Pass in an ArrayList (ByReference) to have it sorted in QWERTY order
    'using a custom method that needs to be built.

    Hope this helps! Smile

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 23, 2009 12:11 PM