Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
I Have A Problem With Raise Event In C#
NonaSoft Cool
Mar 18 2007 12:41 PM
5k
Reply
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#
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
C# word-xp textbox
enabling PROMISCUOUS mode