473,623 Members | 2,790 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to raise events in a Windows control libarary?

Hi, friends,

I need to raise certain events in my VC# windows control library. Any
reference paper or sample source code for help? Thanks a lot...
Nov 16 '05 #1
2 1909
What do you mean "raise event" in the "control library"? Are you talking
about controls that are part of the framework like a control inherited from
the Control class.

If you have inherited from an existing control, then you can usually call
the OnX methods which raise the event.

Or are you talking about how to raise events, in general?

"Andrew" <An****@discuss ions.microsoft. com> wrote in message
news:54******** *************** ***********@mic rosoft.com...
Hi, friends,

I need to raise certain events in my VC# windows control library. Any
reference paper or sample source code for help? Thanks a lot...

Nov 16 '05 #2
Thanks.

Yes, you are right. When you open a new project in VC#, select the Windows
Control Library icon from right pane, that is the one I am talking about.

I mean how to raise customer events, i.e., my own events, from the control I
created by myself, so that potential users can program based on each events.
This control does NOT need to inheritate any events from controls it
contains, such as text box, combo box, etc.

"Peter Rilling" wrote:
What do you mean "raise event" in the "control library"? Are you talking
about controls that are part of the framework like a control inherited from
the Control class.

If you have inherited from an existing control, then you can usually call
the OnX methods which raise the event.

Or are you talking about how to raise events, in general?

"Andrew" <An****@discuss ions.microsoft. com> wrote in message
news:54******** *************** ***********@mic rosoft.com...
Hi, friends,

I need to raise certain events in my VC# windows control library. Any
reference paper or sample source code for help? Thanks a lot...


Nov 16 '05 #3

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

Similar topics

1
10511
by: Dan Cimpoiesu | last post by:
I have a remoting object, derived from MarshalByRefComponent, that I instantiate on the client side, with Activator.GetObject. Can I receive events fired on the server, on the client? How?
6
2807
by: Tim Westmoreland | last post by:
Can someone tell me how to raise an event or trap when the maxlength of a server side textbox has been reached?
4
4533
by: Jeremy | last post by:
I have a combobox with a SelectionChangeCommitted event handler, and am having a problem raising this event. For example, raiseEvent mycombobox.SelectionChangeCommitted gives me an error about not being ended properly. But it won't accept parameters either. What's the trick here?
1
1074
by: Martin | last post by:
In a VB.NET windows forms I have a custom control which I have added a number of instances to a panel control. I want to raise a event when one of the controls on one of the custom controls is changed etc. and trap this event in the Form code where the panel is Each copy of the control is created and added to the panel using items.add()
1
9934
by: Anonieko | last post by:
I know Visual Studio lacked support on easily writing code to raise events from a ascx user control ( because you have to hand write them). (http://codebetter.com/blogs/brendan.tompkins/archive/2004/10/06/27795.aspx) Question: Is it better and easier now in ASPNET 2.0 , meaning VS 2005?
0
1263
by: tony | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file. One project that build a class library dll One project that build a windows control dll In the windows control c-tor is there a call to a method in the class libarary. So in the project referense settings for the windows control I have a
0
1098
by: Ravi | last post by:
Hi, I have C# windows control libarary (Dll), which I could able to load them into browser using <objecttag with following syntax (In aspx page) and user able to see the page properly. <object name="chk" id="chk" classid="http:GSIM.dll#GSIM.gsimManager"></object> But we would like to load a client C# windows control libarary instead of from webserver. Assume that the GAC avilalble in client GAC.
0
1145
by: Ravi | last post by:
Hi, I have C# windows control libarary (Dll), which I could able to load them into browser using <objecttag with following syntax (In aspx page) and user able to see the contolr properly. <object name="chk" id="chk" classid="http:GSIM.dll#GSIM.gsimManager"></object> I would like to load a client C# windows control libarary (Dll) instead from webserver. (something like OCX)
11
4019
by: nadeem_far | last post by:
Hello, I am working on a c# project using framework 1.1. Since its a console application,no windows forms are being used. I am trying to implement event driven classes that just want to raise the event and continue working( like fire and forget - do not wait for the event handler in client to finish.) I have gone through alot of the articles on internet and MSDN and most talk about delegates (or BackGroundWorker in 2.0 which I cannot
0
8667
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8610
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8324
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8469
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5561
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4070
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2597
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 we have to send another system
1
1775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1471
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.