hi all,
I am using a listbox on a windows form to get a list of clients, when i user click on an item it should retrieve the summary of all his invoices ( so it takes some time). I am disabling the form so that user can never click on a client before finishing the previous data retrieval , so my code is like the following:
VB Code:
'in the list1.selectedindexchanged event me.enabled = false '''''open datareader '''''retrieve data '''''close datareader me.enabled = true
it works very very fine, except for one thing.
when i click an item with the mouse, it works great but !! when i try to navigate the items in the list by using Arrows it doesn't change the selected item. i suppose that is because of the disabling of the form. So how can i force changing of selected item before applying ( me.enabled = false)
THX in Advance
BST RGDS




Reply With Quote