Problem using ListItem Datatype for ListBox Control

  • Thread starter Thread starter Zack Sessions
  • Start date Start date
Z

Zack Sessions

I am trying to implement a ListBox control in VB.NET. I am using the
sample code right from the online help, but I am stuck on simply
declaring a list item variable. The datatype ListItem simply doesn't
show up in the list of available datatypes. I have tried importing
System.Web and System.Object and even System.IO, but none of them
help.

Any ideas?
 
* (e-mail address removed) (Zack Sessions) scripsit:
I am trying to implement a ListBox control in VB.NET. I am using the
sample code right from the online help, but I am stuck on simply
declaring a list item variable. The datatype ListItem simply doesn't
show up in the list of available datatypes. I have tried importing
System.Web and System.Object and even System.IO, but none of them
help.

'ListItem' is for web form listboxes. In Windows Forms, you can add any
object to the listbox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top