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 5-Dec-10 23:43pm
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 405
1 Peter Leow 225
2 Sergey Alexandrovich Kryukov 210
3 Maciej Los 195
4 DamithSL 174


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