Click here to Skip to main content
15,886,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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..

VB
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
Updated 24-Feb-13 23:33pm
v2
Comments
CHill60 25-Feb-13 5:33am    
Why not try posting the converted code and telling us what the error is
[no name] 25-Feb-13 5:35am    
need more info to help you.

Make sure you define s_bQuote somewhere in your code.
 
Share this answer
 
Because of
qc.OnQuote is not defined in first line.
 
Share this answer
 
Comments
Member 9363513 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900