Results 1 to 3 of 3

Thread: Make a modal form wich is modal by software, no with modal show

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2014
    Location
    Kallithea Attikis, Greece
    Posts
    1,312

    Make a modal form wich is modal by software, no with modal show

    I post the code in a thread to resolve a problem, but i think this code must be here.

    We have a Form1 like a dialog and we wish to open a "modal" form Form2 and maybe a help form Form3 which maybe stay open while Form2 closed.
    Also we don't like to disable Form1 controls. So how we can shield Form1 from clicks?

    The answer is by using a form as shield in front of Form1. This shield turned transparent so nobody knows that exist. If we click on form1 in task-bar then we send focus to this transparent Form, but our "modal" Form2 and perhaps if visible Form3 are both always in front of this transparent form. So we did nothing if we click on Form1 (which is covered with shield form). When Form2 close, turn transparency of shield form to 0, so we can use Form1 without unload shield, because shield is like no exist any more (but is loaded and in show state, so can hold other forms).
    If we wish we can turn transparency to an amount of 50 so to dim Form1, the way we see in HTML forms when modal windows pop up.
    Attached Files Attached Files
    Last edited by georgekar; May 27th, 2017 at 10:49 AM. Reason: text corrections

  2. #2
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,487

    Re: Make a modal form wich is modal by software, no with modal show

    It might help others (me) grasp the need and solution, if you also provide a link to the other thread where you were helping them by providing this solution.

    Thanks for sharing,
    Rob

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    May 2014
    Location
    Kallithea Attikis, Greece
    Posts
    1,312

    Re: Make a modal form wich is modal by software, no with modal show


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width