Click here to Skip to main content
15,895,192 members
Home / Discussions / C#
   

C#

 
AnswerRe: What is the best way to create background application? Pin
Natural_Demon22-Aug-09 9:17
Natural_Demon22-Aug-09 9:17 
GeneralRe: What is the best way to create background application? Pin
Saksida Bojan22-Aug-09 12:07
Saksida Bojan22-Aug-09 12:07 
GeneralRe: What is the best way to create background application? Pin
Mycroft Holmes22-Aug-09 14:28
professionalMycroft Holmes22-Aug-09 14:28 
GeneralRe: What is the best way to create background application? Pin
Natural_Demon23-Aug-09 2:16
Natural_Demon23-Aug-09 2:16 
GeneralRe: What is the best way to create background application? Pin
Natural_Demon23-Aug-09 2:21
Natural_Demon23-Aug-09 2:21 
GeneralRe: What is the best way to create background application? Pin
Alan N23-Aug-09 4:18
Alan N23-Aug-09 4:18 
GeneralRe: What is the best way to create background application? Pin
Natural_Demon24-Aug-09 11:17
Natural_Demon24-Aug-09 11:17 
QuestionTimer doesn´t work by Server and Client! Pin
nhqlbaislwfiikqraqnm21-Aug-09 22:58
nhqlbaislwfiikqraqnm21-Aug-09 22:58 
Hello!


Everthing works, but he don´t open myTimer_Tick!!!

open takes the value from the textbox, then * 1000 = 5sec!


public Form1()<br />
        {<br />
            InitializeComponent();            <br />
        }<br />
<br />
        void myTimer_Tick(object sender, EventArgs e)<br />
        {<br />
           System.Diagnostics.Process.Start("winword");    <br />
        }


/*static*/ void Listen()<br />
        {<br />
<br />
<br />
            while (true)<br />
            {<br />
                try<br />
                {<br />
                    data = new byte[1024];<br />
                    received = networkStream.Read(data, 0, data.Length);<br />
                    if (received == 0)<br />
                        break;<br />
<br />
                    string get = Encoding.ASCII.GetString(data, 0, received);<br />
                    var send = get.ToByteArray();<br />
                    //Console.WriteLine("Received from TCP Client: " + get);<br />
                    networkStream.Write(send, 0, send.Length);<br />
<br />
                    if (get.Contains("open_ever_x_sec"))<br />
                    {                        <br />
                        string[] get_Split2 = get.Split('~');<br />
                        int open = Convert.ToInt32(get_Split2[1]);<br />
                        timer1.Tick += new EventHandler(myTimer_Tick);<br />
                        timer1.Interval = open * 1000; // Millisekunden<br />
                        timer1.Enabled = true;                                             <br />
                    }<br />

AnswerRe: Timer doesn´t work by Server and Client! Pin
Xmen Real 21-Aug-09 23:24
professional Xmen Real 21-Aug-09 23:24 
GeneralRe: Timer doesn´t work by Server and Client! Pin
nhqlbaislwfiikqraqnm21-Aug-09 23:32
nhqlbaislwfiikqraqnm21-Aug-09 23:32 
GeneralRe: Timer doesn´t work by Server and Client! Pin
Xmen Real 21-Aug-09 23:45
professional Xmen Real 21-Aug-09 23:45 
GeneralRe: Timer doesn´t work by Server and Client! Pin
nhqlbaislwfiikqraqnm21-Aug-09 23:49
nhqlbaislwfiikqraqnm21-Aug-09 23:49 
AnswerRe: Timer doesn´t work by Server and Client! [modified] Pin
Saksida Bojan22-Aug-09 0:30
Saksida Bojan22-Aug-09 0:30 
GeneralRe: Timer doesn´t work by Server and Client! Pin
nhqlbaislwfiikqraqnm22-Aug-09 0:50
nhqlbaislwfiikqraqnm22-Aug-09 0:50 
GeneralRe: Timer doesn´t work by Server and Client! Pin
Saksida Bojan22-Aug-09 1:40
Saksida Bojan22-Aug-09 1:40 
GeneralRe: Timer doesn´t work by Server and Client! Pin
nhqlbaislwfiikqraqnm22-Aug-09 5:18
nhqlbaislwfiikqraqnm22-Aug-09 5:18 
GeneralRe: Timer doesn´t work by Server and Client! Pin
Saksida Bojan22-Aug-09 6:57
Saksida Bojan22-Aug-09 6:57 
AnswerRe: Timer doesn´t work by Server and Client! Pin
Alan N22-Aug-09 7:23
Alan N22-Aug-09 7:23 
GeneralRe: Timer doesn´t work by Server and Client! Pin
Saksida Bojan22-Aug-09 11:53
Saksida Bojan22-Aug-09 11:53 
GeneralRe: Timer doesn´t work by Server and Client! Pin
Alan N22-Aug-09 13:25
Alan N22-Aug-09 13:25 
GeneralRe: Timer doesn´t work by Server and Client! Pin
Saksida Bojan22-Aug-09 18:58
Saksida Bojan22-Aug-09 18:58 
GeneralRe: Timer doesn´t work by Server and Client! Pin
nhqlbaislwfiikqraqnm22-Aug-09 23:12
nhqlbaislwfiikqraqnm22-Aug-09 23:12 
AnswerRe: Timer doesn´t work by Server and Client! Pin
Alan N23-Aug-09 6:24
Alan N23-Aug-09 6:24 
GeneralRe: Timer doesn´t work by Server and Client! Pin
nhqlbaislwfiikqraqnm23-Aug-09 23:36
nhqlbaislwfiikqraqnm23-Aug-09 23:36 
GeneralRe: Timer doesn´t work by Server and Client! Pin
Alan N24-Aug-09 0:56
Alan N24-Aug-09 0:56 

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.