I have done a search on AcFocusCtrl set of properties, but after I added the reference library to the project it still does not recognize the AcFocusCtrl1.KeepFocus property. I would appreciate any help. By the way I am running AutoCAD 2005 Thanks Dan