Topic: Blocked form
Hello, I have a problem with a form.
When I open form 2 it displays correctly and closes with the code "Hide".
The problem is that Form 1 remains frozen, it never closes. not. I can't find where the error is.
My Visual Database → General → Blocked form
Hello, I have a problem with a form.
When I open form 2 it displays correctly and closes with the code "Hide".
The problem is that Form 1 remains frozen, it never closes. not. I can't find where the error is.
Hi Destiny
procedure Hide - Hides the form.
procedure Close - Closes the form.
event OnClose - Occurs when the form closes.
Thus, by executing "Hide" you hide the form but do not complete its operation.
Because of this, the main form cannot be closed until the "Table" form is closed.
The "OnClose" event is executed when the form is closed (Close procedure) and is not executed in your case.
It is from a tablegrid that I want to close the "Table" form to return to the "frmOperation" form but it always blocks.
Example
Thank you Sparrow, when I enter data into the form table “frmOperation” remains blocked.
You are using the "Table.Hide" command inappropriately.
This command hides the form. And while the form is not closed, your main form is blocked.
To close the form, use only "Table.Close ;"
In your example, it is enough to delete the "Table.Hide" command.
In the example, clicking on the grid makes the "Table" form disappear and that's perfect, but when I click on the data in "TableGrid1" the form freezes and nothing happens.
Double-clicking on data, if there is a function (button) to edit a record, triggers the OnClick event for the edit button.
Thank you Sparrow, it works wonderfully.
Have a nice week end.
My Visual Database → General → Blocked form
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi