Microsoft
Software
Hardware
Network
Question : refreshing listbox value
I have a listbox on a form. Sometimes the value of the listbox does not reflect what is actually selected. Specifically, after I have deleted an item from the listbox and there is no item selected on the listbox, the value it reflects in some code following is still the id of the deleted item instead of "null." Is there a way to refresh the value? I tried using the requery command, but did not work?
Answer : refreshing listbox value
After deleting ... try this:
Me.YourListBoxName = Null
This will clear the list box.
mx
Random Solutions
edit ad add to xml fie
How to hide a startup form
Pb in sharepoint MOSS 2007 with explorer view - webdav
Obtain the latest date in SQL datatable using vb.net 2005
Hyper-V- server 2008 R2 - Windows server backup supported?
Integration Manager grayed out
IIS7 Port 80 Redirection in an App
Delete rows from datagrid when = to variable
Access: how do I include a very long text field?
aspx c# request not accepting new parameter