CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2000
    Location
    Ottawa, Ontario
    Posts
    356

    unconnecting forms

    I have a application that has multiple forms. I want it so if a user clicks a form only that form will come on top (focus). instead any forms that are shown by the app will appear and the selected form will have focus. The problem with this is that if the user is copying data from a form to another app they have to minimize all the other forms so they won't display when they pick the one they want.

    Example
    If you create 5 forms from1,2,3,4,5 and use Me.Show on all of them. Then the user opens NotePad then click on form3 When this happens form1,2,3,4 and 5 will show! (but 3 will have focus) The other forms will cover notpad. Can I make it so only form3 will appear over notepad?


    Jean-Guy


  2. #2
    Join Date
    Jun 2001
    Location
    Memphis, TN
    Posts
    146

    Re: unconnecting forms

    There may be a simpler way to do this, but I would try using an MDI form to house all the other forms in my app. Then when you are copy/pasting to notepad you would only have to minimize the one MDI form and all your other forms would go with it. If you've never used MDI before, just create a new MDI form and set all your other forms you've already written to MDIChild = True.


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