473,503 Members | 3,045 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to overload method of third party component?

I have this sub, which is part of a third party component:

Private Sub Uploader1_OnProcessCompleted(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Uploader1.OnProcessCompleted

--do something

End Sub

I need to pass in another parameter. I do have access to their source code
but only need the modification for one app. In other words, I don't want to
create a new parameter that must be used by all apps. I just need to
overload for this one app. How is that done?

Thanks,
Brett
Nov 21 '05 #1
2 1163
Hi Brett,

You can't pass another parameter to that because it's an event handler.
You could override the function which fires the event and change the
event it fires, but this will likely break a lot of code.

Where do you get the parameter from? There's probably another way to do
what you require.

Regards,
-Adam.

Brett wrote:
I have this sub, which is part of a third party component:

Private Sub Uploader1_OnProcessCompleted(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Uploader1.OnProcessCompleted

--do something

End Sub

I need to pass in another parameter. I do have access to their source code
but only need the modification for one app. In other words, I don't want to
create a new parameter that must be used by all apps. I just need to
overload for this one app. How is that done?

Thanks,
Brett

Nov 21 '05 #2
Brett,

When it is not yet there you can set it in that code as a complete new
method with the same name.

That is named an overloaded method.

I hope this helps,

Cor
Nov 21 '05 #3

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

Similar topics

1
4245
by: Kris G Yeleswarapu | last post by:
Hi, I downloaded the infragistics tree view control from the msdn site. I am unable to find that in my toolbox. I haven't used third part controls, so please help me on how I can go about using...
4
1280
by: Tony | last post by:
Hi, does anyone know some good third party database component written in ..NET? I am looking for an alternative for MS ACCESS or MSDE. Thanks Tony
15
12764
by: jon | last post by:
How can I call a base interface method? class ThirdPartyClass :IDisposable { //I can not modify this class void IDisposable.Dispose() { Console.WriteLine( "ThirdPartyClass Dispose" ); } } ...
0
1694
by: Billy Porter | last post by:
Greetings, I'm looking for a third party grid component that supports the following features: 1. Multiple expandable/collapsible child tables. 2. Easy way to render the resulting grid in MS...
3
2119
by: John Dann | last post by:
I'd like to talk to a (serial port linked) external instrument from within a .Net project. The makers supply a Win32 compatible DLL (written in C and not an ActiveX DLL I think) that handles the...
0
1018
by: siddharthkhare | last post by:
Hi All, I have requirement where I am getting some free text from users of my applications. And it will have some key fields that I have to extract out. Now there could be various different...
10
1687
by: Alan T | last post by:
I found a thirtparty component but have no idea how to integrate into VS 2005 IDE? The files come with project file and solution files.
5
16000
by: Eric Layman | last post by:
Hi, I noticed that PHP have the ability to create PDF files without using any third partty componentys. Most notably is via FPDF. It generates PDF by using "pdf markups" / or ghostscripts I...
2
1068
by: jimcys | last post by:
Greetings! May i know is there any third party tree view component that can support Chinese characters without changing window's language to Chinese? Thanks.
0
7193
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7067
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5562
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4992
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.