dcsimg
Results 1 to 2 of 2

Thread: Open window prevent main

  1. #1

    Thread Starter
    Hyperactive Member jokerfool's Avatar
    Join Date
    Dec 2006
    Location
    Gold Coast, Australia
    Posts
    431

    Resolved Open window prevent main

    Code:
     private void Button1_Click(object sender, EventArgs e)
            {
                new BatchScripts().Show();
                
            }
    When I click my button the window opens no probs, how do I disable the main window whilst this window is open? Thanks.
    Last edited by jokerfool; May 19th, 2019 at 01:30 PM.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    40,823

    Re: Open window prevent main

    If you want to disable all other windows in your application, simply use ShowDialog instead of 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
  •  



Featured


Click Here to Expand Forum to Full Width