Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CheckedListBox space character

Status
Not open for further replies.

bigoldbulldog

Programmer
Feb 26, 2002
286
US
Anyone, know why my CheckedListBox control doesn't respond to the space character keydown when using arrow keys. Mouse clicks work perfectly. I haven't had much luck using the keydown event.

Arrow and space keys have always been available in checkbox controls and I would like to continue to use the feature.

Cheers,
ND [smile]
 
Solved, while keeping the CheckedListBox.

I just switched from using SelectionChanged and KeyDown to ItemCheck. I just have to adjust for the event firing before the actual check. No big deal - just do GetItemChecked(((ListBox)sender).SelectedIndex) and pass the bool and index as parameters to the working method. Thx

Cheers,
ND [smile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top