Hi,

I'm subclassing a form that has 2 controls on it, a textbox and a combobox. Each control is being sublcassed at the same time.

In my window procedure, I need to determine which control currently has the focus and is sending the message so that I can do some processing for the particular control.

I tried placing a "TypeOf" statement in the window procedure to try and determine the type of control, but it keeps bombing..

Any ideas?