CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 1999
    Location
    Chile
    Posts
    177

    How to show a form as a Modal dialog box

    Hi... I want the main form of my VB application to be a modal dialog box of other window. How can I do it?

    Thanks
    Jaime


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: How to show a form as a Modal dialog box

    yourdialog.Show vbModal


  3. #3
    Join Date
    Aug 1999
    Location
    Chile
    Posts
    177

    Re: How to show a form as a Modal dialog box

    Hi..

    And I have to place it in Form_Load() method?. How can I specify which window is the parent? I want to make the Main form as Modal... that's my problem... the goal is to pass in the command line the Handle of the window that has executed the VB application, so the Form will be shown as a dialog box of that application. Tha VB application is intended to be called from other program.

    Thanks
    Jaime


  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: How to show a form as a Modal dialog box

    Ok, we're getting closer.
    You want to make your main form a modal dialog of another app?
    That cannot be done IMHO. At least, there is no easy way that I know of.
    You'd have to create an ActiveXDLL.
    All "modal" forms in VB are Application-modal.


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