How do we call a form1 class event from another class present in form1.cs?
public partial class form1 : form
{
// an event to change the text of a textbox
}
public class A
{
sendtext()
{
//text to be sent to the texbox
// the text is created as a output of a thread
}
You should create an event in
Aclass and subscribe to it fromform1.You will probably stumble into cross-thread limitations, but that’s another question, just write a comment if you will.