Click here to Skip to main content
11,577,494 members (32,469 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
I have tried to convert this code on the internet using the converter but when i put the converted code in the form it has an error... can you please help me with this code..

qc.OnQuote += new QuoteEventHandler(qc_OnQuote);
 
 static void qc_OnQuote(object sender, QuoteEventArgs args)
        {
            QuoteClient qc = (QuoteClient)sender;
            if (s_bQuote)
            {
                Console.WriteLine(args);
              }
        }
Posted 24-Feb-13 23:31pm
Edited 24-Feb-13 23:33pm
CHill60100.3K
v2
Comments
CHill60 at 25-Feb-13 5:33am
   
Why not try posting the converted code and telling us what the error is
CodeMaster_Noob at 25-Feb-13 5:35am
   
need more info to help you.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Make sure you define s_bQuote somewhere in your code.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Because of
qc.OnQuote is not defined in first line.
  Permalink  
Comments
Member 9363513 at 25-Feb-13 6:36am
   
The OnQuote is an event in QuoteClient class

dim qc=new QuoteClient

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 180
1 OriginalGriff 115
2 Richard MacCutchan 100
3 Abhinav S 90
4 Peter Leow 80
0 OriginalGriff 820
1 Sergey Alexandrovich Kryukov 681
2 Abhinav S 528
3 F-ES Sitecore 420
4 Suvendu Shekhar Giri 375


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 25 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100