473,383 Members | 1,984 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

usercontrol and Application.AddMessageFilter(this)

I'm a vb programmer but i have to make a control in C# to be consumed by a
vb .net application. I've found some help on the internet/newsgroups in order
to scan an image from a twain source and send the image to the software. I've
tested the program and it works fine, but now i'm using that code on a
usercontrol in order to consume that usercontrol in vb .net application.
Everything works fine (the scanner driver can be selected, the driver
interface is shown and the user can interact with it,...), but the image cant
be digitalized, for what seems to be caused by this line that i had to
comment in order for the usercontrol to be builded

Application.AddMessageFilter(this);

When i insert the previous line, i get the following two errors:

1- "the best overloaded method match for
'System.Windows.Forms.Application.AddMessageFilter '
(System.Windows.Forms.IMessageFilter)' has some invalid arguments

2- Argument '1': cannot convert from 'TwainMCtrl.UserControl1' to
'System.Windows.Forms.IMessageFilter'

Does anyone knows how can i solve this problem?

My thanks in advanced

Ricardo Furtado
Jan 26 '07 #1
0 1499

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lars Pedersen | last post by:
Hi. I had a similar question here some days ago.....anyway.. When in VS.Net adding a webform in a subfolder of the project, and adding a UserControl to this webform. Then after setting this...
2
by: Jason Kester | last post by:
I have a UserControl living on MyPage.aspx. How would MyPage.aspx go about retrieving the HTML content generated by that UserControl as a string? I've looked into two options, neither of which...
8
by: Raed Sawalha | last post by:
Hi, I have a strange problem with a usercontrol on a page. The usercontrol dispalyes three categories (From a database) when the user clicks a category they see all the products in a shop for...
4
by: Mat | last post by:
Hi, I am having a bit of a problem trying to access / set properties of a usercontrol from the parent codebehind. This is what I have so far.. simple.aspx <%@ Page...
3
by: Fernando Lopes | last post by:
Hello. I want to create a usercontrol for upload imagens. So, I will put this usercontrol in a lot of pages in my application. Probably will not work, because some form will not set with...
2
by: Sascha | last post by:
Hi there, I searched carefully through the web before finally deciding to post this message, because I could not find a solution for my problem. Hopefully someone will have a hint or explanation...
4
by: Michael Maes | last post by:
Hi, I have a UserControl with some "Children" (e.g. one ComboBox & one Label). I add the UserControl on a Form. If I perform a recursive scan through that Form's Control-Collection the...
3
by: Don | last post by:
I've created a custom UserControlwithin which I have placed a Panel. I've changed the Panel's "Modifier" property to Public so that it appears in the Properties Window of the UserControl. This...
1
by: Tony Johansson | last post by:
Hello! I'm reading in a book and here they says. "Now it is time to begin thinking about which events the control should provide. Because the control is derived from userControl class, it has...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.