I know it is something simple.
I have Mainwindow which has a textbox. On textbox content change an event happen i.e. textboxtext_changed and after that I want textbox to become empty again.
I have a function in other class and it is executed in textboxtext_changed. I am thinking of clearing textbox in function in other class only, but I can not access mainwindow controls and I dont want to create instance of mainwindow there.
Is there any easy way to do it ?
1 Answer