How does one use the SetFocus API in VB?
Here is the declare string derived from the API viewer;
Private Declare Function SetFocus Lib “user32” Alias “SetFocus” (ByVal hwnd As Long) As Long
When I use this declare string, I get an “object member already exists ina object module from which this object derives” error; I think this is because the function name is the same as a VB command; I have tried changing the alias to other things that might work but still get errors;
What alias can I use, or is this a “no-deal” API for VB?
Thanks,
–Llyal