Home All Groups Group Topic Archive Search About
Author
3 Jun 2006 5:39 PM
Joe Van Meer
Hi All,

I have begun a small app (exe) that contains a listbox. When I go to
manipulate it in code, say a loop through all the listitems in the listbox
it says that my ListItem is not declared even though the form is inheritting
(Inherits System.Windows.Forms.Form) .  I was under the impression that have
this I would have access to listitem type of object.  Could I be missing
another reference?  This never happens in my asp.net apps and was just
wondering what I might be missing.

Cheers, Joe

Author
3 Jun 2006 6:34 PM
Herfried K. Wagner [MVP]
"Joe Van Meer" <jvanm***@eastlink.ca> schrieb:
> I have begun a small app (exe) that contains a listbox. When I go to
> manipulate it in code, say a loop through all the listitems in the listbox
> it says that my ListItem is not declared even though the form is
> inheritting
> (Inherits System.Windows.Forms.Form) .  I was under the impression that
> have
> this I would have access to listitem type of object.

'ListItem' is a class that is used with Web forms.  Maybe you are referring
to 'ListViewItem'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
4 Jun 2006 11:38 AM
Joe Van Meer
hehe :) thx m8 :)



Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:%237UkTxzhGHA.1320@TK2MSFTNGP04.phx.gbl...
> "Joe Van Meer" <jvanm***@eastlink.ca> schrieb:
> > I have begun a small app (exe) that contains a listbox. When I go to
> > manipulate it in code, say a loop through all the listitems in the
listbox
> > it says that my ListItem is not declared even though the form is
> > inheritting
> > (Inherits System.Windows.Forms.Form) .  I was under the impression that
> > have
> > this I would have access to listitem type of object.
>
> 'ListItem' is a class that is used with Web forms.  Maybe you are
referring
> to 'ListViewItem'.
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
>