Click here to Skip to main content
12,242,492 members (50,942 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB 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
CHill60141.4K
v2
Comments
CHill60 25-Feb-13 5:33am
   
Why not try posting the converted code and telling us what the error is
CodeMaster_Noob 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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 25 Feb 2013
Copyright © CodeProject, 1999-2016
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