GetFocus Function is very Slow??
I am using GetFocus() function in a DataGridView control but it incredibly slow? Takes about 1 to 2 minutes to return the control that has focus.
What I am doing is selecting the cell in the grid using arrow keys then press F2 to make that cell active then I want to see what inside the cell, it could be either a TextField of Popuplist, so I use getFocus to tell me what the control is.
But since I do this often and since it takes about 1-2 minutes to get the control GetFocus() is very frustrating to use. Is there another way to get the control that has focus? Is there a way to speed up Silks GetFocus() routine?
Re: GetFocus Function is very Slow??
If there are a defined list of controls that may have focused that you are concerned with, can you check the coupld of individual controls to see which has focus instead? Maybe this will save some time. So maybe...