TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
NonaSoft Cool
NA
53
0
I Have A Problem With Raise Event In C#
Mar 18 2007 12:41 PM
Am building a class Called
MailClass
which I need to Raise event called
ShowInfo
each time I have any Messages.
In Vb.Net You simple go to class Modules and write
Public Event ShowInfo(ByVal MsgReport As String)
.
To send any Messagse I would write
RaiseEvent Showinfor("hai")
Then to consume it in a form I would write
Dim WithEvents ReportError As MailClass
Automatically it will gives me a procedure called
Public Sub MsgReport _AnyError(ByVal ReportError As String)
MsgBox ReportError
End Sub
Please How can I do all these in C#
Reply
Answers (
1
)
C# word-xp textbox
enabling PROMISCUOUS mode