Results 1 to 3 of 3

Thread: [RESOLVED] Multiple Form Help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2006
    Posts
    250

    Resolved [RESOLVED] Multiple Form Help

    Hi Everyone,

    I would like my VB.NET 2005 program (form1) to open another form(form2) when I click a button. When the button is clicked, I would like form1's opacity to change to 75% and not allow the user to click on it until form2 is closed.

    When form2 is closed, the opacity of form1 will return to 100%.

    Can someone show me how this is done? Thanks for any help you can provide.

  2. #2
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Re: Multiple Form Help

    I assume you know how to open Form2 from Form1. You know

    Dim f as New Form2
    Me.Opacity = .75
    f.ShowDialog
    Me.Opacity = 1

    That ShowDialog prevents the user from clicking on Form1 one until Form2 is closed.
    VB.Net 2008
    .Net Framework 2.0

    "Must you breathe? 'Cause I need heaven..."

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2006
    Posts
    250

    Re: Multiple Form Help

    Excellent, that works great. Thank you.

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