CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 1999
    Location
    Israel
    Posts
    140

    How do i change modaless form to modal

    How do i change modaless form to modal?


  2. #2
    Guest

    Re: How do i change modaless form to modal

    Use Show method of form with vbModal parameter. This is an example:

    frmForm.Show vbModal, MDIMain' frmForm will be displayed as Modal, MDIMain is a parent form



    Vlad


  3. #3
    Join Date
    Jul 1999
    Location
    Israel
    Posts
    140

    Re: How do i change modaless form to modal

    Maybe i didn'y clarify my question. I want to show the form with vbModeless but that it will behave as a Modal.


  4. #4
    Join Date
    Apr 1999
    Location
    Rotterdam, Netherlands
    Posts
    278

    Re: How do i change modaless form to modal

    Disable the window that shows the window.. uhmmm
    Me.Enabled = False
    MyForm.Show vbModeless, Me

    Now you only need to figure a way to tell the Me form when MyForm is done... I usually use an event for such things.

    Crazy D :-)
    "One ring rules them all"

  5. #5
    Join Date
    Jul 1999
    Location
    Israel
    Posts
    140

    Re: How do i change modaless form to modal

    Thanks



  6. #6
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: How do i change modaless form to modal

    Hi,
    I am just curious... Can you explain the case a little more please.. where & why you are showing a form Modeless and you want to behave it modal.!
    I couldn't figure out one...

    RK

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