Hi... I am a noob, just started to do GUI.
I have a button on it.
May I know besides clicking on the button, is there any other way I can invoke the function inside the button_click event??
Like an auto button ??

For example, I have a function running and when it returns "true" I want the function in the button_click event to be activated, without me manually clicking on the button. (Something like an auto button)..

Is it possible??

Sorry if I just ask a stupid question

There are no stupid questions, only stupid answers.
I can only hope my answer isn't stupid.

I am assuming your are using VisualC++ here.
When your function returns true, simply call your buttonclick eventhandler.