Thanks Michael, We're using .NET, so this should be OK, I guess? All of the other controls (StackPanel, Grid...) are being imported from System.Windows.Controls, so I thought ListItem ought to have been somewhere in there.
> > from System.Web.UI.WebControls import ListItem > > > That's for ASP - is that what you are using? > > > but I get "can't import UI" > > > You will need to add a reference to its containing assembly before you can > import it. > > What is the 'containing assembly'? Should I do something like.... from System.Web import UI (guess, not, same error!) > > > So, anyone know how to do this? > > Also, I'm concerned that next time (if I ever get it working first time) I > come to this popup, it will contain the items I had added previously; how > does one go about clearing the whole listbox? > > listbox.Items.Clear() > > HTH, > > Michael > >
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com