CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2008
    Posts
    72

    how to have modal dialog in c#?

    I am launching an exe (child) from a main exe (parent)

    the parent exe is in c++

    the child exe is in c#

    in child exe, i have a code

    thisApp.showdialog() // this causes the child's UI to be shown

    however, the child dialog is not modal... while it is up, i can click away from it and access the parent window

    how to have a modal dialog with the above setup?

  2. #2
    Join Date
    Mar 2008
    Location
    Atlanta, GA
    Posts
    49

    Re: how to have modal dialog in c#?

    Perhaps you have to specify the owner of the modal?

  3. #3
    Join Date
    May 2007
    Location
    Denmark
    Posts
    623

    Re: how to have modal dialog in c#?

    I was thinking the same thing... but he'd have to specify the C++ process as the owner... is that possible?
    It's not a bug, it's a feature!

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

Featured