hi,
I need help. I have a main form that will open other form when clicking the button. The problem is when the other form was opened, it will open again after second time clicking the button. So it will make duplicate form appear on the desktop. What i want now when buttons is click for the first time it will open the form. If the form is already appear on the desktop, it just pop up and maximize the form. In a main form now only have a button and execute program object. I do not know how to implement it. Anyone have any idea and what kind of object that i need to solve this problem?
I need help. I have a main form that will open other form when clicking the button. The problem is when the other form was opened, it will open again after second time clicking the button. So it will make duplicate form appear on the desktop. What i want now when buttons is click for the first time it will open the form. If the form is already appear on the desktop, it just pop up and maximize the form. In a main form now only have a button and execute program object. I do not know how to implement it. Anyone have any idea and what kind of object that i need to solve this problem?
Initialize a variable to check the button's status
Put an If-Then statement/block before execute the Click of button to check if the button was previously clicked already or not, if it checked before then maximize the window, if not, open it up.
And after you clicked the button, place a value in the variable that you use for the If-Then statement.
Hope this helps.