Results 1 to 3 of 3

Thread: vbModal for a MDI child?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    124

    vbModal for a MDI child?

    I have a parent MDI form and a child form. The menu on the MDI has a "New Customer" selection which brings up the child form when clicked. How can I prevent the user from going back to the MDI unless they closed the child form? vbModal doesnt work.

    Code:
    Private Sub mnuCustomerNewCustomer_Click()
    
        frmNewCustomer.Show(vbModal)
            
    End Sub

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: vbModal for a MDI child?

    What you may do is disable the MDIForm while showing the MDIChild, didnt checked if it will work though. Or you can still use non-mdichild forms then show it modally.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    124

    Re: vbModal for a MDI child?

    Yeah, it seems that non-mdi child forms will work better for my program, thx!

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