Hello everyone,
I'm new around here and yes, I've checked the forum before posting this thread :)
I'm having big troubles with an app (developed for Windows Mobile phones) that has, basically, to control the temperature of a room and send a message to the phone if something's wrong...
Well, the app works great (every recording file works perfectly etc) but textboxes don't want to refresh... To be clear, I'll paste the part of the code that gives me headaches:
public void Insert()
{
if (Misurazioni.v_max > 130)
{
textBox1.ForeColor = Color.Red;
textBox2.ForeColor = Color.Red;
textBox3.ForeColor = Color.Red;
textBox4.ForeColor = Color.Red;
}
else
{
textBox1.ForeColor = Color.Green;
textBox2.ForeColor = Color.Green;
textBox3.ForeColor = Color.Green;
textBox4.ForeColor = Color.Green;
}
textBox1.Text = Misurazioni.date;
textBox2.Text = Misurazioni.v_max.ToString();
textBox3.Text = Misurazioni.unita;
textBox4.Text = Misurazioni.n_fault.ToString();
chrono.Write(ref Misurazioni.date, ref Misurazioni.v_max, ref Misurazioni.unita, ref Misurazioni.n_fault);
}
So... everything is fine: the function calls Write (a method of chrono) regularly and, if you analyze the code when you run it step by step, the textboxes change their content with the new, exact, one... but, when I go to the emulator, they don't refresh so the new values don't appear... I tried textbox.refresh(), textbox.update(), application.doevents() etc but nothing works... I need to end this project before this Sunday and I'm JUST A LITTLE concerned about this problem (I'm trying to fix this since the beginning of last week)... Any help? Pleeeeeeease :(