a question re vb.net

Discussion in 'Questions (Windows Mobile)' started by Ricky D, Oct 16, 2008.

  1. Ricky D

    Ricky D Well-Known Member Licensed User

    In my autocompletecombo I would like to expose the items collection of the internal combobox. How do I do this in vb.net? I'm not sure what type the Items is.

    regards, Ricky
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You will need to convert the collection to an array of strings and return the array.
     
  3. agraham

    agraham Expert Licensed User

    Something like
    Code:
    public String GetItem(int index)
    {
        (
    Stringreturn combox.items(index); // might need the cast 
    }

    public String SetItem(int index, String value)
    {
        combobox.items(index) = value;
    }
    Sorry it's in C# :) but you probably get the idea! Normally I test code fragments before I post but I haven't actually tried this. I think the cast that might be needed is DirectCast in VB but it is so long since I used it I may have forgotten.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice