|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
weird listitem issueHi 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 "Joe Van Meer" <jvanm***@eastlink.ca> schrieb: 'ListItem' is a class that is used with Web forms. Maybe you are referring > 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. to 'ListViewItem'. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> 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/> >
Adding row to table
Timer Component for VB 2005 .aspx page? XY coordinates on form XML Encoding woes... Attempted to read or write protected memory. dll vs vb 2005 Numeric / Currency control Exposing a .Net assembly to both VB6 and .Net (1 more time) InvalidCastException in DataRow webbrowser control to submit form Read data directly from a textbox and insert into a table |
|||||||||||||||||||||||