Click here to Skip to main content
15,905,233 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: .NET makes it impossible to print from Excel 2003??? Pin
Tim Carmichael21-Aug-08 6:09
Tim Carmichael21-Aug-08 6:09 
GeneralRe: .NET makes it impossible to print from Excel 2003??? Pin
mSh198521-Aug-08 6:34
mSh198521-Aug-08 6:34 
QuestionHow to hide the current cell selection outline box in the datagridview? [modified] Pin
Jon_Boy21-Aug-08 3:26
Jon_Boy21-Aug-08 3:26 
AnswerRe: How to hide the current cell selection outline box in the datagridview? Pin
Jon_Boy21-Aug-08 4:50
Jon_Boy21-Aug-08 4:50 
GeneralRe: How to hide the current cell selection outline box in the datagridview? Pin
ChandraRam22-Aug-08 1:40
ChandraRam22-Aug-08 1:40 
GeneralRe: How to hide the current cell selection outline box in the datagridview? Pin
Jon_Boy22-Aug-08 4:08
Jon_Boy22-Aug-08 4:08 
QuestionScript (VBS) (WMI) To query Resultant Set of Policy (RSoP) and get security settings Pin
rocker198721-Aug-08 1:35
rocker198721-Aug-08 1:35 
QuestionConverting C# code to VB.net Pin
dix21-Aug-08 0:55
dix21-Aug-08 0:55 
Hi

I'm converting this C# code to VB.net. I'm using online conveters but the converted code give me errors please help

private void IveGotEventDataToReport(String str)

{
SystemMessageArgs args = new SystemMessageArgs(str);
lock (this)
{
Delegate[] delegates = m_EventChannelDataReceived.GetInvocationList();
foreach (Delegate aDelegate in delegates)
{
EventChannelMessage sink = (EventChannelMessage)aDelegate;
sink.BeginInvoke(this, args, null, null);
}
}
}

Converted VB Code

Private Sub IveGotEventDataToReport(ByVal str As String)
Dim args As New SystemMessageArgs(str)
SyncLock Me

Dim delegates As [Delegate]() = m_EventChannelDataReceived.GetInvocationList() 'Error
For Each aDelegate As [Delegate] In delegates
Dim sink As EventChannelMessage = DirectCast(aDelegate, EventChannelMessage)
sink.BeginInvoke(Me, args, Nothing, Nothing)
Next
End SyncLock

End Sub

I get the error on line number 4 , the error message is
Error 2 'Private Event m_EventChannelDataReceived(sender As Object, se As SystemMessageArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.

Please help with this Regard
Thanks in advance
AnswerRe: Converting C# code to VB.net PinPopular
Christian Graus21-Aug-08 1:16
protectorChristian Graus21-Aug-08 1:16 
GeneralRe: Converting C# code to VB.net Pin
Paul Conrad21-Aug-08 18:43
professionalPaul Conrad21-Aug-08 18:43 
AnswerCP IGNORE Pin
leckey21-Aug-08 3:56
leckey21-Aug-08 3:56 
QuestionBig Endian format and IP Address Pin
ddspliting20-Aug-08 23:45
ddspliting20-Aug-08 23:45 
AnswerRe: Big Endian format and IP Address Pin
Christian Graus21-Aug-08 0:10
protectorChristian Graus21-Aug-08 0:10 
GeneralRe: Big Endian format and IP Address Pin
ddspliting21-Aug-08 0:57
ddspliting21-Aug-08 0:57 
GeneralRe: Big Endian format and IP Address Pin
Christian Graus21-Aug-08 1:26
protectorChristian Graus21-Aug-08 1:26 
AnswerRe: Big Endian format and IP Address Pin
Alan N21-Aug-08 1:59
Alan N21-Aug-08 1:59 
Questionsql statement ignored by ozeki sms server. Pin
peanutong20-Aug-08 23:34
peanutong20-Aug-08 23:34 
AnswerRe: sql statement ignored Pin
Christian Graus21-Aug-08 0:07
protectorChristian Graus21-Aug-08 0:07 
GeneralRe: sql statement ignored [modified] Pin
peanutong21-Aug-08 0:39
peanutong21-Aug-08 0:39 
GeneralRe: sql statement ignored Pin
Christian Graus21-Aug-08 0:49
protectorChristian Graus21-Aug-08 0:49 
GeneralRe: sql statement ignored Pin
peanutong21-Aug-08 0:54
peanutong21-Aug-08 0:54 
GeneralRe: sql statement ignored Pin
Christian Graus21-Aug-08 1:17
protectorChristian Graus21-Aug-08 1:17 
GeneralRe: sql statement ignored Pin
peanutong21-Aug-08 1:19
peanutong21-Aug-08 1:19 
GeneralRe: sql statement ignored Pin
Christian Graus21-Aug-08 1:31
protectorChristian Graus21-Aug-08 1:31 
QuestionNeed Help!! DataGridView can't save Pin
Ultrajet20-Aug-08 23:29
Ultrajet20-Aug-08 23:29 

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.