I am using one thread running this code:
try
{
    Form1 f = getForm<Form1>();
    f.changePrice(price);
}
catch (Exception e)
{
    Console.WriteLine("error: " + e);
}
Here is the changePrice method:
public void changePrice(Int32 price)
{
   txtPrice.Text = ""+price;
}
I want to add text to my textbox "txtPrice".
 
     
     
    