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

    URGENT - How to Keep a Modeless form Active on a parent form ?



    Hi,

    I have a Text editor, where in the user has the otpion to use the FIND and REPLACE tool. Now like the standard editors( which support Find or Search), I need to keep the form active on my application as long the user closes this form and also at the same time, need to work on the editor as well.


    Please look into the behaviour of either Wordpad, Notepad, MS-Word.


    When you invoke the FIND tool, a form is displayed, where the user can type the text he needs to be Found. Now even when the Find form is active, we can still go ahead and continue editing on the editor. The Find Form still stays active on the Application. The Find Form does not close nor gets minimised untill the user forcibly closes the form.


    Please come out with your suggestions as soon as possibile, as I have got very less time to achieve this behaviour. This needs to be done on VB 5.0.


    If you need more info, please feel free to call me up at


    91-80-3460 616 ( Off )

    91-80-6656 040 ( Res )


    e-mail

    [email protected]


    Thanks in advance,

    Bimlesh




  2. #2
    Join Date
    Apr 1999
    Posts
    57

    Re: URGENT - How to Keep a Modeless form Active on a parent form ?



    Try this


    Let us call the Find Dialog as frmFind and the editing form as FrmEdit


    When you do a Find, Pop up frmFind as follows


    frmFind.Show 0 ,ParentForm


    where parentForm is the MDI form


    See if it works


    Good Luck

    Anand

  3. #3
    Join Date
    Jan 1999
    Posts
    7

    It works !



    Anand,

    Thanks for the solution. it has indeed solved my purpose.


    Ur immediate response is very mcuh appreciated.


    Regards

    Bimlesh

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