Data binding between a control and a class in Winforms

All i want is that when i insert something in a text box a variable inside a class should be updated.

I can not figure out on how to insert the appropriate code in the event handler.

I made a class, made an object of that class in main but whenever i insert the code in the event handler for calling of a function from that object(that i made in the main)the compiler says that it cannot find that object.

i have been searching the internet forever and i cannot find the answer to this problem.

Plz guyz very very urgent help is required in this regard.

Thanks.
Topic archived. No new replies allowed.