Window events

I have a window which is created runtime from within a form. That window is not an MDIChild but a child window to the form. The only thing I know about the window is its handle( i know that is all would need ). Having said that, how would I capture mouse events or any event in that window.

A code snippet and a little explanation will be of great help.

Thanks
maggariAsked:
Who is Participating?
 
DanRollinsConnect With a Mentor Commented:
maggari, an EE Moderator will delete this for you.
Moderator, my recommended disposition is:

    DELETE this question.

DanRollins -- EE database cleanup volunteer
0
 
COAtheGREATCommented:
Is this window vb Form or some other program ?
0
 
maggariAuthor Commented:
Its created runtime from a VB form. Its actually a VB window. I don't know if its a form or not. What if its a form?
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
COAtheGREATCommented:
You can create custom Events like any other class and fire them when you need. On the form that creates your child form dimension the chield form with events.

Dim WithEvents MyForm as vbForm 'this enables you to catch her events

Private Sub MyForm_SomethingHapened()

end sub

0
 
maggariAuthor Commented:
Its not a form. Its a window created by one of the Win32 API functions. So, if anyone can tell me how to catch the events from such a window, that will help.
0
 
maggariAuthor Commented:
Its not a form. Its a window created by one of the Win32 API functions. So, if anyone can tell me how to catch the events from such a window, that will help.
0
 
maggariAuthor Commented:
Its not a form. Its a window created by one of the Win32 API functions. So, if anyone can tell me how to catch the events from such a window, that will help.
0
 
maggariAuthor Commented:
Its not a form. Its a window created by one of the Win32 API functions. So, if anyone can tell me how to catch the events from such a window, that will help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.