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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.