Thanks Michael,<br>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. <br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div text="#000000" bgcolor="#ffffff"><div class="im"><blockquote type="cite">
<br>
from System.Web.UI.WebControls import ListItem<br>
</blockquote>
<br></div>
That's for ASP - is that what you are using?<div class="im"><br>
<blockquote type="cite"><br>
but I get "can't import UI"<br>
</blockquote>
<br></div>
You will need to add a reference to its containing assembly before you
can import it.<div class="im"><br></div></div></blockquote><div><br>What is the 'containing assembly'? Should I do something like....<br><br>from System.Web import UI<br><br>(guess, not, same error!)<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff"><div class="im">
<br>
<blockquote type="cite"><br>
So, anyone know how to do this?<br>
<br>
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?<br>
</blockquote></div>
listbox.Items.Clear()<br>
<br>
HTH,<br>
<br>
Michael<br>
<br>
</div>
</blockquote></div><br>