Click here to Skip to main content
15,921,841 members
Home / Discussions / C#
   

C#

 
GeneralRe: Label update [modified] Pin
Luc Pattyn30-Jan-07 2:42
sitebuilderLuc Pattyn30-Jan-07 2:42 
AnswerRe: Label update Pin
Jasmine250130-Jan-07 5:53
Jasmine250130-Jan-07 5:53 
GeneralRe: Label update [modified] Pin
imnotso#30-Jan-07 6:13
imnotso#30-Jan-07 6:13 
GeneralRe: Label update Pin
Dan Neely30-Jan-07 6:45
Dan Neely30-Jan-07 6:45 
GeneralRe: Label update Pin
Jasmine250130-Jan-07 18:34
Jasmine250130-Jan-07 18:34 
GeneralRe: Label update Pin
Jasmine250130-Jan-07 18:39
Jasmine250130-Jan-07 18:39 
GeneralRe: Label update Pin
imnotso#30-Jan-07 23:17
imnotso#30-Jan-07 23:17 
Questionconvert c# to vb.net Pin
Doritkatz30-Jan-07 1:00
Doritkatz30-Jan-07 1:00 
the c# code:

public delegate void SchedulerEventDelegate(SchedulerEventType type, string scheduleName);

static public event SchedulerEventDelegate OnSchedulerEvent;

if (OnSchedulerEvent != null)

how can I convert this to VB?

more detail:
I have a code in c# from http://www.codeproject.com/csharp/eventscheduler.asp
My boss ask me to convert it to vb.net

currently I have a problem with this line:

Code:
if (OnSchedulerEvent != null) (in c#)

when i convert it to


visual basic code:--------------------------------------------------------------------------------If Not OnSchedulerEvent Is Nothing Then--------------------------------------------------------------------------------

the error I'll get:

Public Shared Event OnSchedulerEvent(type As SchedulerEventType, StrScheduleName As String)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.

what can I'll do????
C# code

Code:
public delegate void SchedulerEventDelegate(SchedulerEventType type, string scheduleName);

static public event SchedulerEventDelegate OnSchedulerEvent;

if (OnSchedulerEvent != null)

Vb.net code

visual basic code:--------------------------------------------------------------------------------Public Delegate Sub SchedulerEventDelegate(ByVal type As SchedulerEventType, ByVal StrScheduleName As String)

Public Shared Event OnSchedulerEvent As SchedulerEventDelegate--------------------------------------------------------------------------------



AnswerRe: convert c# to vb.net Pin
andre_swnpl30-Jan-07 1:19
andre_swnpl30-Jan-07 1:19 
GeneralRe: convert c# to vb.net Pin
Doritkatz30-Jan-07 1:55
Doritkatz30-Jan-07 1:55 
AnswerRe: convert c# to vb.net Pin
Pete O'Hanlon30-Jan-07 1:20
mvePete O'Hanlon30-Jan-07 1:20 
GeneralRe: convert c# to vb.net Pin
Martin#30-Jan-07 1:32
Martin#30-Jan-07 1:32 
AnswerRe: convert c# to vb.net Pin
Dave Doknjas30-Jan-07 13:42
Dave Doknjas30-Jan-07 13:42 
QuestionSending a crypt Email with Attachment Pin
olivier29-Jan-07 23:37
olivier29-Jan-07 23:37 
QuestionGet File Name Pin
ParimalaRadjaram29-Jan-07 23:26
ParimalaRadjaram29-Jan-07 23:26 
AnswerRe: Get File Name Pin
Pete O'Hanlon29-Jan-07 23:33
mvePete O'Hanlon29-Jan-07 23:33 
GeneralRe: Get File Name Pin
ParimalaRadjaram29-Jan-07 23:35
ParimalaRadjaram29-Jan-07 23:35 
GeneralRe: Get File Name Pin
bobsugar22229-Jan-07 23:39
bobsugar22229-Jan-07 23:39 
GeneralRe: Get File Name Pin
ParimalaRadjaram29-Jan-07 23:41
ParimalaRadjaram29-Jan-07 23:41 
GeneralRe: Get File Name Pin
bobsugar22229-Jan-07 23:59
bobsugar22229-Jan-07 23:59 
AnswerRe: Get File Name Pin
engsrini30-Jan-07 0:47
engsrini30-Jan-07 0:47 
GeneralRe: Get File Name Pin
ParimalaRadjaram30-Jan-07 2:51
ParimalaRadjaram30-Jan-07 2:51 
AnswerRe: Get File Name Pin
greenpci30-Jan-07 1:54
greenpci30-Jan-07 1:54 
GeneralRe: Get File Name Pin
ParimalaRadjaram30-Jan-07 2:55
ParimalaRadjaram30-Jan-07 2:55 
GeneralRe: Get File Name Pin
ParimalaRadjaram30-Jan-07 17:48
ParimalaRadjaram30-Jan-07 17:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.