473,385 Members | 1,409 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,385 software developers and data experts.

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 1886
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****@discussions.microsoft.com> wrote in message
news:54**********************************@microsof t.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****@discussions.microsoft.com> wrote in message
news:54**********************************@microsof t.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
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
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
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...
1
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...
1
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)....
0
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...
0
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. ...
0
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. ...
11
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
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.