Results 1 to 5 of 5

Thread: How can i hide my second form dialog without bliking form not closing my first form?

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2011
    Posts
    137

    Question How can i hide my second form dialog without bliking form not closing my first form?

    Sorry guys the title shoud be this

    How can i close form1 with button exit to show form2 without bliking form - After i click close program it shoud close form2 and show again form1 as normal form with position ?

    I am using Visual studio 2013. I created two forms, form1 with a button to open form2 and the form2 has a button "exit" which will take me back to form1

    This is my code i have for so far.

    Code:
    Form2.StartPosition = Windows.Forms.FormStartPosition.Manual
    Form2.Bounds = Me.Bounds
    Form2.ShowDialog()
    button exit close form1 and show form2 - After i want to close form2 it shoud close form2 and show form1 again as normal form.






    Thanks in advance guys
    Last edited by polas; Mar 27th, 2014 at 03:44 AM.

Tags for this Thread

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