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!

Scrolling Grid loses focus

Status
Not open for further replies.

David Higgs

Programmer
May 6, 2012
390
0
16
GB
Hi,
I have a "GRID" on my Form and whilst scrolling up / down some of the columns need "re-sizing" to display all of the data. To achieve this I have a "Command Button" that calls a "autofit" routine. This works fine although the "Focus" of the mouse on the "Grid" is lost. I have to click on a record in the Grid to continue scrolling. Is it possible for the "Focus" to return to the Mouse / Grid after the command button has been pressed?

Regards,
David
 
Many Thanks Mike, that did the trick nicely; it's easy when you know how!

Regards,
David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top