Hi,
I am working on an application which will consist of one form/window only.
The form/window should be visible on the start and closed (with the entire application) when user clicks on Close button.
If I make the form/window modal, where do I put the READ EVENTS command?
UPDATE: I made the form modeless and set the property ShowWindow to 2 - As Top Level Form.
Then I put the READ EVENTS after the form is opened. And in the form Unload I put CLEAR EVENTS.
So, so far the form opens and closes.
The only problem remains is as follows:
When a user clicks on one of the buttons of the form another Modal form opens. But at the same time the "main" form/window disappears. How can I keep the "main" form/window open while another model form is open?
UPDATE 2: This "main" form is used in another application as Modal form. And the property ShowWindow in that other application is 0 (not 2).
Is it possible to change these properties in code when creating the object of the form when it has to be Modeless and 2 - As Top Level Form?
TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham