J
jayderk
Hello All,
I am running in to a situation where the listbox is not refreshing for me.
I am using a timer to cycle every second and call the timer_elapsed() event.
in the time_elapsed event Method I have code that checks to see if a DB
table has been updated.. if so the new new data is uploaded to the listbox
by calling
lstbox1.datasource = myDBDataSet;
and this works great.. but only on the first time the event gets the data
from the database and loads the listbox.
the second time it goes and gets the new data from the database..
I do a
lstbox1.datasource = null; // I have to do this before I do a
lstbox1.items.clear().
lstbox1.items.clear();
this does not Clear out the list...
I then do
lstbox1.datasource = myDBDataSet;
and it does nothing....
thanks in advanced..
I am running in to a situation where the listbox is not refreshing for me.
I am using a timer to cycle every second and call the timer_elapsed() event.
in the time_elapsed event Method I have code that checks to see if a DB
table has been updated.. if so the new new data is uploaded to the listbox
by calling
lstbox1.datasource = myDBDataSet;
and this works great.. but only on the first time the event gets the data
from the database and loads the listbox.
the second time it goes and gets the new data from the database..
I do a
lstbox1.datasource = null; // I have to do this before I do a
lstbox1.items.clear().
lstbox1.items.clear();
this does not Clear out the list...
I then do
lstbox1.datasource = myDBDataSet;
and it does nothing....
thanks in advanced..