Click here to Skip to main content
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 25-Feb-13 0:31am
Edited 25-Feb-13 0:33am
CHill6085.6K
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)



Advertise | Privacy | Mobile
Web01 | 2.8.150327.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