1 (edited by sparrow 2025-03-24 20:46:34)

Topic: One form

There is such an old topic on the forum https://myvisualdatabase.com/forum/view … hp?id=1547
and the question of this topic arises from time to time again in different variations. Trying to hide background forms or trying to place a form in a form or on a form. This example is just another attempt to automate the display/hiding of forms and leave only one window/form on the screen. Perhaps it will be useful to someone. It was tested for a short time, I hope without errors.


Unfortunately, this "illusion" will not allow you to open one window several times )))

Post's attachments

Attachment icon test frm.zip 5.87 kb, 127 downloads since 2025-03-24 

2 (edited by AD1408 2025-03-26 09:06:03)

Re: One form

Hi Sparrow,


Thank you very much for the alternative.


Here is a quick example of adding, editing and deleting on same form. It works fine with TG only. However, getting it work with treeview and TG properly, that I couldn't achieve.
-----------
edit: Enabling add btn in some situations were missing. Example file is updated.

Post's attachments

Attachment icon AEDonSame Form_01b.zip 11.57 kb, 116 downloads since 2025-03-26 

Adam
God... please help me become the person my dog thinks I am.

Re: One form

During testing on a working project, it was found that using the Form.Hide/Form.Show methods causes
a new triggering of the OnShow form event and execution of commands, if they are in the event.
Using the Form.Visible method leads to the same result.
This also happens in Dmitry's example. Be careful.
I made changes to my example.

Post's attachments

Attachment icon test frm - fix.zip 6.46 kb, 136 downloads since 2025-03-26 

Re: One form

The example is good, but how do you work from one form to another without closing them? You need to be able to change forms with one click.

Re: One form

What do you mean? I don't understand.

Re: One form

When a first form is open, how to work on another form without closing the first one?

Post's attachments

Attachment icon Formulaire superposés.png 23.28 kb, 47 downloads since 2025-04-28 

Re: One form

SDI applications allow only one open document frame window at a time.
MDI applications allow multiple document frame windows to be open in the same instance of an application.


In order not to describe it in full, I will provide a link to Dmitry’s answer.

https://myvisualdatabase.com/forum/view … hp?id=1069

Re: One form

Thanks Sparrow, I'll look into this further to see what I can do.