Quote:
Originally Posted by ~ Shane
fuuu signature stealers xD
by the way. did you try with timers?
it won't cause crashes cause of infinite loops
|
infinite loop FTW
but only on a new thread xD
this way:
Thread loop = new Thread(UpdateThread);
loop.Start();
public void UpdateThread()
{
while(true)
{
//update ***** here
Thread.Sleep(1);
}
}
and it rocks then.
oh and by the way,for the updating I'd do it this way:
create a new function in Form1.cs (or whatever it's called)
like
public void UpdateTxtBox(string msg)
{
lock(this)
{
txtBox1.Text = "blablabla";
}
}
then in program.cs,I'd create a new from,
Form1 MainForm;
in Main function:
MainForm = new Form1();
Application.Run(MainForm);
then you can update textbox1.text using this:
MainForm.UpdateTxtBox("your text here");
I hope that helped :P