Home › Forums › TWAIN Classic › Problem with message filter.
- This topic has 3 replies, 2 voices, and was last updated 9 years, 10 months ago by spike.
- AuthorPosts
Hi all,
I’m using the TwainDotNet library to implement twain functionality for a scanner I have here.
My problem is as follows…I’ve created a c# UserControl which uses this library. The user control holds settings parameters for the scanner.
This user control is used by a VB6 form.
Everything works bar the PreMessageFilter is not being called.Now when creating a c# form and adding this user control everything works as expected.
It seems to me that the mesasges are either getting lost/blocked due to the user control being created by VB6.
I’ve tried passing the VB6’s form handle to the actually user control’s handle. No success.I’m all out of ideas and was hoping maybe somebody has had a similar problem or would know a solution.
VB6 has to be used..Thanks in advance.
Not sure if anybody understands the question. Had to explain what my problem is.
I have got a bit more insight to the problem. VB6 seems to be blocking/holding the messages destined for my User Control(c#).
All the messages come flooding in when I close the VB6 application.
How do I unlock/unhold the messages now is my next problem.
Never mind I solved it. The problem was that the window messages were being sent to that vb6 application.
I just set up a message filter within VB6 code and sift through the messages and handle the required ones by passing them to the c# lib.
Hey TOR – glad you were able to solve it, sorry the rest of us were no help.
And thanks *very* much for sharing the solution you found.
VB6 lives!- AuthorPosts