Results 1 to 2 of 2

Thread: How to determine type of control in WndProc?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091

    How to determine type of control in WndProc?

    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?

    Visual Studio 2010

  2. #2
    Megatron
    Guest
    Use two different window procedures; one for each control.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width