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.
public String GetItem(int index)
{
(String) return 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.
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.