.NET winforms redraw problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #16
    Well for some reason it seems like your PhotoEngineForm is not getting it's WndProc messages (Windows Messages).
    Have you tried overriding that function and dolling out the refresh commands on the correct windows messages?

    Either that or I would create a new Form, copy the code into it and set THAT as your main form and see if the results repeat?

    Comment

    • SEngel
      New Member
      • Mar 2008
      • 13

      #17
      Originally posted by Plater
      Well for some reason it seems like your PhotoEngineForm is not getting it's WndProc messages (Windows Messages).
      Have you tried overriding that function and dolling out the refresh commands on the correct windows messages?

      Either that or I would create a new Form, copy the code into it and set THAT as your main form and see if the results repeat?
      Yes, it looks like the form doesn't handles repaint events properly.
      Can you advice, which method should I override?

      I'll upload source code soon... But this effect doesn't take place on every PC. It looks like .NET forms on PCs with newer video adapter and CPU work perfectly...

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #18
        What happens if you don't do this:
        Application.Ena bleVisualStyles ();

        It should no longer attempt to match the "theme" of your computer settings (I think).
        See if that makes a difference?

        Comment

        • SEngel
          New Member
          • Mar 2008
          • 13

          #19
          Originally posted by Plater
          What happens if you don't do this:
          Application.Ena bleVisualStyles ();

          It should no longer attempt to match the "theme" of your computer settings (I think).
          See if that makes a difference?
          I have commented this line, but It doesn't help :(

          Here is the example of simple application with the screen from my computer (that is not PhotoEngineForm , but as you can see, there are troubles here too):
          http://rapidshare.com/files/100541360/WindowsApplicat ion1.rar.html

          Comment

          • vijayB
            New Member
            • Mar 2008
            • 40

            #20
            Try to rebuild the solution and create it's executable. The problem might be the loading/unloading of VS2K5 environment


            Originally posted by SEngel
            I am using .net 2.0 and working in VS2005.
            I've noticed following unpleasant effect in the standard Form class
            behaviour: when the Form is hovered by some other window, it is being redrawn very slowly.

            Here is the example. I have taken empty form, put there some standard controls:
            http://www.ljplus.ru/img4/b/o/boshetunmaj/Redraw2.jpg

            My hardware conf is: p4 3200, 2 Gb ram, GeForce 5200.

            Comment

            • Plater
              Recognized Expert Expert
              • Apr 2007
              • 7872

              #21
              I did not see anything different about that application then any other.
              It was "funny" while I was dragging the window (my system is under heavy load) but as soon as I stopped moving it was fine.
              I tested and Visual Studio and all my other windows exhibited the "funny" behavior while I was moving the window. I think it was certainly related to my system being under load.

              Comment

              • SEngel
                New Member
                • Mar 2008
                • 13

                #22
                Originally posted by Plater
                I did not see anything different about that application then any other.
                It was "funny" while I was dragging the window (my system is under heavy load) but as soon as I stopped moving it was fine.
                I tested and Visual Studio and all my other windows exhibited the "funny" behavior while I was moving the window. I think it was certainly related to my system being under load.
                What hardware conf do you have?

                Comment

                • Plater
                  Recognized Expert Expert
                  • Apr 2007
                  • 7872

                  #23
                  Pentium D 2.8Ghz with 1 gig ram.
                  Nothing great.
                  I also had THREE visual studios open as well as a bunch of IEs Firefox(who is a pig and takes up like 100megs virtual memory) and MS SQL Server Management, along with a few other things.

                  Comment

                  • SEngel
                    New Member
                    • Mar 2008
                    • 13

                    #24
                    Originally posted by Plater
                    Pentium D 2.8Ghz with 1 gig ram.
                    Nothing great.
                    I also had THREE visual studios open as well as a bunch of IEs Firefox(who is a pig and takes up like 100megs virtual memory) and MS SQL Server Management, along with a few other things.
                    and what video adapter do you have?

                    Comment

                    • Plater
                      Recognized Expert Expert
                      • Apr 2007
                      • 7872

                      #25
                      It appears to be generic:
                      "Intel(R) 82945G Express Chipset Family" is all it says.

                      Comment

                      Working...