I am trying to use the SetFocus API to set focus to a program that I did not program, but it is telling me "Member already exists in an object module from which this object model derives" but I don't have SetFocus declared anywhere else. The only thing I can think of is where I use Me.SetFocus on MY form, but why can't I use the API? Why are the names not playing well together? I even tried changing the API declare to this:
VB Code:
  1. Private Declare Function SetFocus Lib "user32" Alias "SetFocus2" (ByVal hwnd As Long) As Long
so that it has the Alias of SetFocus2, but it still gives me the same problem. Can anyone help?

Thanks
-Joey