Click here to Skip to main content
15,891,633 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting values from enum with [Flags] attribute Pin
Łukasz Nowakowski20-May-11 1:44
Łukasz Nowakowski20-May-11 1:44 
GeneralRe: Getting values from enum with [Flags] attribute Pin
Luc Pattyn20-May-11 2:02
sitebuilderLuc Pattyn20-May-11 2:02 
GeneralRe: Getting values from enum with [Flags] attribute Pin
markovl20-May-11 1:44
markovl20-May-11 1:44 
QuestionImport Slide ppt Pin
om_metab19-May-11 2:35
om_metab19-May-11 2:35 
AnswerRe: Import Slide ppt Pin
Pete O'Hanlon19-May-11 2:39
mvePete O'Hanlon19-May-11 2:39 
GeneralRe: Import Slide ppt Pin
om_metab19-May-11 3:32
om_metab19-May-11 3:32 
GeneralRe: Import Slide ppt Pin
Pete O'Hanlon19-May-11 3:45
mvePete O'Hanlon19-May-11 3:45 
QuestionSubscription (VB6 to C#) Pin
JSvard18-May-11 22:33
JSvard18-May-11 22:33 
Hi,

I have this VB6 code to follow and I'm fairly new to C# but I manage to do most things with my COM object in C# that I used to in VB6, but I just can't get my hand around subscription in C# despite googling for days.

I'm trying to do something like this, but no luck.
------------C#---------------
void SubscribeToEvent()
{
g.OnServiceAccessPerformanceUpdate += new INetMonClientObjNotify_OnServiceAccessPerformanceUpdateEventHandler(g_OnServiceAccessPerformanceUpdate);
}

This is the code in VB6 that works...

------------VB6--------------
Private Sub SetServiceAccessSubscription(SiteID As String, IDList() As Long)

On Error Resume Next
Dim VariantIDList As Variant
VariantIDList = IDList

g_NetMonitor.SetServiceAccessSubscription SiteID, VariantIDList

If Err.Number = 0 Then
PrintLine ("Service Access subscription successfully set.")
Else
Err.Clear
PrintLine ("Failed to set Service Access subscription.")
End If
End Sub

-----------------------------

Anyone care to give me some ideas of how to subscribe to the COM object updates? Sniff | :^)
AnswerRe: Subscription (VB6 to C#) Pin
RobCroll19-May-11 6:03
RobCroll19-May-11 6:03 
GeneralRe: Subscription (VB6 to C#) Pin
JSvard19-May-11 23:53
JSvard19-May-11 23:53 
GeneralRe: Subscription (VB6 to C#) Pin
RobCroll20-May-11 0:29
RobCroll20-May-11 0:29 
GeneralRe: Subscription (VB6 to C#) Pin
JSvard20-May-11 1:08
JSvard20-May-11 1:08 
AnswerRe: Subscription (VB6 to C#) Pin
BobJanova20-May-11 3:28
BobJanova20-May-11 3:28 
GeneralRe: Subscription (VB6 to C#) Pin
JSvard20-May-11 3:47
JSvard20-May-11 3:47 
GeneralRe: Subscription (VB6 to C#) Pin
BobJanova20-May-11 6:47
BobJanova20-May-11 6:47 
QuestionWorking with OleDb and Null Values Pin
Matt U.18-May-11 13:28
Matt U.18-May-11 13:28 
AnswerRe: Working with OleDb and Null Values Pin
PIEBALDconsult18-May-11 14:30
mvePIEBALDconsult18-May-11 14:30 
GeneralRe: Working with OleDb and Null Values Pin
Matt U.18-May-11 14:48
Matt U.18-May-11 14:48 
QuestionRe: Working with OleDb and Null Values Pin
Luc Pattyn18-May-11 16:47
sitebuilderLuc Pattyn18-May-11 16:47 
AnswerRe: Working with OleDb and Null Values [modified] Pin
PIEBALDconsult18-May-11 16:59
mvePIEBALDconsult18-May-11 16:59 
GeneralRe: Working with OleDb and Null Values Pin
Luc Pattyn18-May-11 17:11
sitebuilderLuc Pattyn18-May-11 17:11 
GeneralRe: Working with OleDb and Null Values Pin
PIEBALDconsult18-May-11 17:29
mvePIEBALDconsult18-May-11 17:29 
GeneralRe: Working with OleDb and Null Values Pin
GenJerDan19-May-11 11:13
GenJerDan19-May-11 11:13 
AnswerRe: Working with OleDb and Null Values Pin
Shameel19-May-11 1:42
professionalShameel19-May-11 1:42 
AnswerRe: Working with OleDb and Null Values Pin
Pete O'Hanlon19-May-11 2:09
mvePete O'Hanlon19-May-11 2:09 

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.