CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Threaded View

  1. #1
    Join Date
    Jul 2006
    Posts
    97

    [RESOLVED] Responsive GUI: design question

    Hello all!

    I'm trying to make my program more user friendly and the first thing that came into my mind was making the GUI fully responsive. I have a lot of methods that involve looping and other time consuming tasks. I created a window to show a message to user, like "Doing some task, please wait...". The window then calls a method on a separate thread, to stay responsive. Now the question is:

    I have some methods that I would like to report their progress. Like, for example, an auto-update method - I would like it to be able to show messages like "Checking for updates" then change to "Updating..." and finally "Update successful!".

    I do already have a method SetText() implemented for the information window, but I can't think of the best way to use it. I want the methods I call in another thread to NOT contain any GUI related code, so I don't want to pass the information window object to the methods. Note, I do know about invoking and I already solved all GUI and MT related problems

    Please share your thoughts about this issue, maybe there's some effective way you're all using?

    I appreciate, as always, any comments of the gurus
    Last edited by gecka; September 30th, 2007 at 07:36 AM.
    Using .NET 2.0

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