Click here to Skip to main content
15,891,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i have a list box in which i have binded a list(numeric value 1 to 700) , i want that if i am changing the value through up and down arrow[verical scrollwing) of list box it should select the present value or the display value rather than on my click event.
its in wpf.
write now i am using selection changed event of list box.
Posted
Updated 12-Nov-13 0:26am
v2

1 solution

just add the code on "comboBox1_SelectedIndexChanged"
 
Share this answer
 
Comments
kumar9avinash 12-Nov-13 6:06am    
i am no getting selectedindex changed event in list box..
agent_kruger 12-Nov-13 6:18am    
the event is called whenever the selected item is changed. and what exactly you need?
kumar9avinash 12-Nov-13 6:24am    
see, in list box by mouse click i have to select the value, according to that value graph is responding , i want that as we click on vertical scrool bar (up, down) it should select the value , i dont have to click on it.
agent_kruger 12-Nov-13 6:38am    
ok, you want to execute code on moving the scroll bar up and down with mouse . am i right?
kumar9avinash 12-Nov-13 6:41am    
yes, exactly

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900