Click here to Skip to main content
15,923,006 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question about Chart in C# Pin
pongpanut29-Jan-12 0:10
pongpanut29-Jan-12 0:10 
GeneralRe: Question about Chart in C# Pin
OriginalGriff28-Jan-12 23:08
mveOriginalGriff28-Jan-12 23:08 
GeneralRe: Question about Chart in C# Pin
pongpanut29-Jan-12 1:58
pongpanut29-Jan-12 1:58 
GeneralRe: Question about Chart in C# Pin
OriginalGriff29-Jan-12 2:06
mveOriginalGriff29-Jan-12 2:06 
GeneralRe: Question about Chart in C# Pin
pongpanut29-Jan-12 2:16
pongpanut29-Jan-12 2:16 
GeneralRe: Question about Chart in C# Pin
OriginalGriff29-Jan-12 2:58
mveOriginalGriff29-Jan-12 2:58 
AnswerRe: Question about Chart in C# Pin
Luc Pattyn29-Jan-12 8:35
sitebuilderLuc Pattyn29-Jan-12 8:35 
GeneralRe: Question about Chart in C# Pin
Luc Pattyn28-Jan-12 22:12
sitebuilderLuc Pattyn28-Jan-12 22:12 
GeneralRe: Question about Chart in C# Pin
pongpanut28-Jan-12 22:23
pongpanut28-Jan-12 22:23 
QuestionWriting source code in seperate files Pin
Fred 3427-Jan-12 22:27
Fred 3427-Jan-12 22:27 
AnswerRe: Writing source code in seperate files Pin
Richard MacCutchan27-Jan-12 22:37
mveRichard MacCutchan27-Jan-12 22:37 
GeneralRe: Writing source code in seperate files Pin
Eddy Vluggen27-Jan-12 23:44
professionalEddy Vluggen27-Jan-12 23:44 
GeneralRe: Writing source code in seperate files Pin
Richard MacCutchan28-Jan-12 0:19
mveRichard MacCutchan28-Jan-12 0:19 
GeneralRe: Writing source code in seperate files Pin
Eddy Vluggen28-Jan-12 5:19
professionalEddy Vluggen28-Jan-12 5:19 
GeneralRe: Writing source code in seperate files Pin
Richard MacCutchan28-Jan-12 5:26
mveRichard MacCutchan28-Jan-12 5:26 
GeneralRe: Writing source code in seperate files Pin
AmitGajjar28-Jan-12 21:35
professionalAmitGajjar28-Jan-12 21:35 
GeneralRe: Writing source code in seperate files Pin
Richard MacCutchan28-Jan-12 22:06
mveRichard MacCutchan28-Jan-12 22:06 
GeneralRe: Writing source code in seperate files Pin
Luc Pattyn28-Jan-12 22:16
sitebuilderLuc Pattyn28-Jan-12 22:16 
AnswerRe: Writing source code in seperate files Pin
Dean Oliver27-Jan-12 22:38
Dean Oliver27-Jan-12 22:38 
AnswerRe: Writing source code in seperate files Pin
jschell28-Jan-12 4:35
jschell28-Jan-12 4:35 
GeneralRe: Writing source code in seperate files Pin
PIEBALDconsult28-Jan-12 13:34
mvePIEBALDconsult28-Jan-12 13:34 
AnswerRe: Writing source code in seperate files PinPopular
Eddy Vluggen28-Jan-12 5:29
professionalEddy Vluggen28-Jan-12 5:29 
GeneralRe: Writing source code in seperate files Pin
PIEBALDconsult28-Jan-12 13:37
mvePIEBALDconsult28-Jan-12 13:37 
AnswerRe: Writing source code in seperate files Pin
BobJanova28-Jan-12 6:32
BobJanova28-Jan-12 6:32 
QuestionSimple MultiThread question Pin
PozzaVecia27-Jan-12 20:51
PozzaVecia27-Jan-12 20:51 
Hi I would like to use argument in ThreadStart Delegate but I have problem with syntax. here the code example

CSS
using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading;



namespace mtquestion

{

    class Program

    {

        static void Main(string[] args)

        {
           

            Thread T1 = new Thread(new ThreadStart(C(15,25)));

            Thread T2 = new Thread(new ThreadStart(C(15, 29)));

            Thread T3 = new Thread(new ThreadStart(C(18, 25)));

            

            T1.Start();

            T2.Start();

            T3.Start();



            object locker = new object();

             lock (locker)

            T1.Join();

             T2.Join();

        T3.Join();

        lock (locker)

            Console.Write("c");

        }


        public static void C(double a, double b) { Console.WriteLine(a*b);}

     

			

    }

}


the syntax
Thread T1 = new Thread(new ThreadStart(C(15,25)));
return the following error"method name expected"
How can I pass arguments?
Thanks for your time

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.