Click here to Skip to main content
15,919,358 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to run a dos command from csharp application. [modified] Pin
Spunky Coder11-Oct-07 1:05
Spunky Coder11-Oct-07 1:05 
GeneralRe: How to run a dos command from csharp application. Pin
tech_the_fighter11-Oct-07 1:18
tech_the_fighter11-Oct-07 1:18 
GeneralRe: How to run a dos command from csharp application. Pin
Spunky Coder11-Oct-07 1:39
Spunky Coder11-Oct-07 1:39 
GeneralRe: How to run a dos command from csharp application. Pin
tech_the_fighter11-Oct-07 1:44
tech_the_fighter11-Oct-07 1:44 
AnswerRe: How to run a dos command from csharp application. Pin
tech_the_fighter11-Oct-07 1:49
tech_the_fighter11-Oct-07 1:49 
GeneralRe: How to run a dos command from csharp application. Pin
Spunky Coder11-Oct-07 1:52
Spunky Coder11-Oct-07 1:52 
GeneralRe: How to run a dos command from csharp application. Pin
tech_the_fighter11-Oct-07 2:45
tech_the_fighter11-Oct-07 2:45 
QuestionPassing Parameter Method into a Thread, Help! Pin
Patricio Tapia11-Oct-07 0:24
Patricio Tapia11-Oct-07 0:24 
 <br />
    public delegate void updatevalores(int total);<br />
<br />
    public partial class FormConexiones : Form<br />
    {<br />
        private int procesosactuales = 0;<br />
        public FormConexiones()<br />
        {<br />
            InitializeComponent();<br />
        }<br />
       private void FormConexiones_Load(object sender, EventArgs e)<br />
        {<br />
            procesos proces = new procesos();<br />
            Thread pid = new Thread(new ThreadStart(proces.iniciar(new updatevalores(actualizarv))));<br />
            pid.Start();<br />
        }<br />
<br />
        public void actualizarv(int total)<br />
        {<br />
            procesosactuales = total;<br />
        }<br />
}<br />


Another Class:
class procesos {<br />
    {<br />
        struct sproceso<br />
        {<br />
            public int id;<br />
            public string NombreProceso;<br />
            public string DirProceso;<br />
            public string FileProceso;<br />
            public DateTime tiempoinicio;<br />
        }<br />
        ArrayList listaprocesos = new ArrayList();<br />
        bool existeproces = false;<br />
        bool coincide = false;<br />
        Timer nuevotiempo = new Timer();<br />
<br />
        public void iniciar(updatevalores procesoact)<br />
        {<br />
            <br />
            nuevotiempo.Elapsed += new ElapsedEventHandler(TiempoEjecutar);<br />
            nuevotiempo.Interval = 5000;<br />
            nuevotiempo.Enabled = true;<br />
        }<br />
<br />
}


The Line Thread pid = new Thread(new ThreadStart(proces.iniciar(new updatevalores(actualizarv)))); has give me an error.

How i can pass values to proces.iniciar method??????????
Thanks
AnswerRe: Passing Parameter Method into a Thread, Help! Pin
Martin#11-Oct-07 0:33
Martin#11-Oct-07 0:33 
GeneralRe: Passing Parameter Method into a Thread, Help! Pin
Patricio Tapia11-Oct-07 0:46
Patricio Tapia11-Oct-07 0:46 
GeneralRe: Passing Parameter Method into a Thread, Help! Pin
Patricio Tapia11-Oct-07 0:49
Patricio Tapia11-Oct-07 0:49 
GeneralRe: Passing Parameter Method into a Thread, Help! Pin
Martin#11-Oct-07 0:52
Martin#11-Oct-07 0:52 
GeneralRe: Passing Parameter Method into a Thread, Help! Pin
Patricio Tapia11-Oct-07 0:56
Patricio Tapia11-Oct-07 0:56 
GeneralRe: Passing Parameter Method into a Thread, Help! Pin
Martin#11-Oct-07 0:58
Martin#11-Oct-07 0:58 
GeneralRe: Passing Parameter Method into a Thread, Help! Pin
KANGAROO_11-Oct-07 2:36
KANGAROO_11-Oct-07 2:36 
Questionwebparts Pin
Aavesh Agarwal11-Oct-07 0:16
Aavesh Agarwal11-Oct-07 0:16 
AnswerRe: webparts Pin
Christian Graus11-Oct-07 0:33
protectorChristian Graus11-Oct-07 0:33 
GeneralRe: webparts Pin
Colin Angus Mackay11-Oct-07 2:52
Colin Angus Mackay11-Oct-07 2:52 
GeneralRe: webparts Pin
led mike11-Oct-07 4:29
led mike11-Oct-07 4:29 
QuestionWrapping a text in listview Pin
anu8111-Oct-07 0:07
anu8111-Oct-07 0:07 
AnswerRe: Wrapping a text in listview Pin
TJoe12-Oct-07 2:16
TJoe12-Oct-07 2:16 
QuestionHow to set ERRORLEVEL in C# ? [modified] Pin
s v joshi11-Oct-07 0:06
s v joshi11-Oct-07 0:06 
AnswerRe: How to set ERRORLEVEL in C# ? Pin
Colin Angus Mackay11-Oct-07 0:26
Colin Angus Mackay11-Oct-07 0:26 
GeneralRe: How to set ERRORLEVEL in C# ? Pin
s v joshi11-Oct-07 1:02
s v joshi11-Oct-07 1:02 
AnswerRe: How to set ERRORLEVEL in C# ? Pin
PIEBALDconsult11-Oct-07 5:32
mvePIEBALDconsult11-Oct-07 5:32 

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.