CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2005
    Location
    Quebec, Canada
    Posts
    75

    Question Forms stuck to application...

    I need some help on a special problem I've got.

    I created a software which let's poeple log calls in a database. Each Log window is opened as a new form object in the main application's form. Now here is the problem I have:

    It happens that I log more than one call at once and my main application's form is to search for clients in our database. Now if I need to work in another application, as it happens many times, when I choose my Log in the task bar to finish it and close it, absolutely all visible windows of my application appear on top of all the windows.

    How can I show a form without bringing all the visible windows of my application in foreground.

    My fast solution is organising my logs in a single window under tabs but this solution was rejected by all users. And before anyone asks, NO, my forms are not shown modally! All forms are modaless.

    NOTE: the form chosen in the task bar stays on top of all the others as asked by the user, the problem is that behind it all visible forms of the application are visible which is not what I asked for.

    Here is an example in image of what I want.
    Attached Images Attached Images
    David Richard

  2. #2
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Forms stuck to application...

    Just off the top of my head, have you considered minimizing all the forms other than the active one?
    Always use [code][/code] tags when posting code.

  3. #3
    Join Date
    Jul 2005
    Location
    Quebec, Canada
    Posts
    75

    Arrow Re: Forms stuck to application...

    That solution works but minimizing 7 windows just to prevent that from happening is not a good solution. And with the quantity of calls we have, this is not a user friendly way to do this.

    I will not minimize all other application windows on the form's focus too, this is not going to happen and is not the solution for this. I cannot do this as a solution.
    David Richard

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Forms stuck to application...

    If users don't want TABS, suggest separate MONITORS for each!
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    Jul 2005
    Location
    Quebec, Canada
    Posts
    75

    Wink Re: Forms stuck to application...

    I asked a question because I need an answer. Please don't make fun of this. I think that this can be achieved but I don't know how. I'm asking help to get my app do what I want it to do not an alternate way.

    Thank you,
    David Richard

  6. #6
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Forms stuck to application...

    Well, a VB.Net or ASP.Net program might have other options, but VB6 doesn't
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  7. #7
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Forms stuck to application...

    OK, just also having a guess, but I would say why not try either of these APIs :

    BringWindowToTop - http://www.google.co.uk/url?sa=t&sou...Wew_pwjTfjC2gw

    SetWindowPos - http://www.google.co.uk/url?sa=t&sou...LCGaPJPkjUij_w

    I really hope it helps you

Tags for this Thread

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