Tim Wilson wrote:
> Have a look through the archives to see if anything helps.
> http://groups-beta.google.com/groups...mpactframework
>
> If not, try posting this question to the official CF newsgroup.
> microsoft.public.dotnet.framework.compactframework
>
I was already trying to find an answer there. I was looking for answer here, i
don't even why. I tried all the combinations, i made for example small project
only with this and i get the same problem as above. Maybe i should add some code:
namespace Przyklad
{
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private Thread t1;
private ThreadStart starter1;
private System.Windows.Forms.Button button1;
public Linia ln;
public Form1()
{
InitializeComponent();
}
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#region Windows Form Designer generated code
#endregion
static void Main()
{
Application.Run(new Form1());
}
private void button1_Click(object sender, System.EventArgs e)
{
starter1 = new ThreadStart(akcja);
t1 = new Thread(starter1);
t1.Start();
}
private void akcja()
{
ln.a="zmiana";
this.Invoke(new EventHandler(Zmiana));
Console.WriteLine(ln.a);
}
private void Zmiana (Object o, EventArgs e)
{
this.label1.Text = ln.a;
}
}
public class Linia
{
public String a;
Linia()
{
a="cos";
}
}
}
Maybe i got something with my system and this code works on others?
Thanks a lot
--
Piotrek "Alchemik" gg:183441 kilobyte[at]tlen[dot]pl
/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\
"I am not in this world to live up to other people's expectations, nor
do I feel that the world must live up to mine." /Fritz Perls