ListBox Page up/down programatically.

  • Thread starter Thread starter Sachin Pise
  • Start date Start date
S

Sachin Pise

Hello Group

I need to know, how I can scroll page up/down on the ListBox on button click.
Without bringing the ListBox in focus.

Thanks & Regards,
Sachin Pis
 
Hello Group

I need to know, how I can scroll page up/down on the ListBox on button click.
Without bringing the ListBox in focus.

I just ran a test with a windows app that has a listbox with 20 items,
textbox and a button. The textbox has initial focus. The button
advances the selected index by one. Clicking on the button does
advance the selected item, but it does set focus to the listbox. I am
assuming that something in the code needs to advance the listbox's
selected index but after doing so, some other control needs to have
focus. So, it appears to me that whatever code is advancing the index
needs to set focus to the appropriate control itself. I see no way to
actually advancing the index without the listbox having focus at all.
 
Back
Top