ListBox Page up/down programatically.

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
 
J

joecool1969

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top