?
Solved

What is the difference between raiseevent and just calling a function?

Posted on 2006-05-18
7
Medium Priority
?
242 Views
Last Modified: 2010-04-23
What is the difference between raiseevent and just calling a function?
0
Comment
Question by:Hepen
  • 5
7 Comments
 
LVL 14

Expert Comment

by:Shiju Sasidharan
ID: 16715139

Raiseevent simply trigers amn event in client application.
suppose u have a class with 3 events say event1, event2 and event3 and
 to invoke events in proper time in ur class we use RaiseEvent
and when u create object of this class in a client application, we can make use of these events in the application
that is u need to declare object using WithEvents key word
0
 
LVL 14

Expert Comment

by:Shiju Sasidharan
ID: 16715144
0
 

Author Comment

by:Hepen
ID: 16715307
I see, so if I have one class and I don't really need to share a method via event I can just call the method instead of attatching an event to it?

Events are only if you want to share that method amongst other classes?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 14

Expert Comment

by:Shiju Sasidharan
ID: 16715743


Events are used to inform that particalar situation has arrived or incident has occurred, or some property has been changed.
0
 
LVL 14

Expert Comment

by:Shiju Sasidharan
ID: 16715771
To share method amongst other classes u can use Shared access modifier?

or use Public modifier (Need to create object of that class to access public method)
0
 
LVL 14

Expert Comment

by:Shiju Sasidharan
ID: 16715809
0
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 2000 total points
ID: 16718692
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question