Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0
Hi,
I am working on a drawing application like paintbrush. I am using VS2005. It is working very nicely on winXP, but on windows7 it is giving some problem.
1. On Opening of context-menu, the drawing that user have drawn automatically gets cleared.
2. I have added a form as child form of main form and i am drawing on main form. While moving this child form over drawing drawn by user, that form works as eraser which erases all drawing.
 
I am not getting these issues on WinXP. But i am facing these issues in Win7.
 
I am not getting any workaround other than switching off auro. But i don't want to do that.
Anyone have any clue or any workaround for this issue?
 

Thanks,
SD
Posted 6-Dec-10 0:43am
sd00007362

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Sounds to me that it accidentially works on Windows XP and does not work anymore on Windows 7.
 
So for me, your design seems to be broken. Do you react correctly to paint events for your window/control? Do you set the correct window styles, telling the system who's responsible for drawing? Do you handle the background paint event correctly?
 
Cheers
Uwe
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 277
1 Maciej Los 240
2 DamithSL 200
3 Raul Iloc 185
4 Richard MacCutchan 175
0 OriginalGriff 5,130
1 DamithSL 4,197
2 Maciej Los 3,670
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,821


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 6 Dec 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100