Invalidating
-
Hi all, i have two classes(one for form that i draw on it, and other class) so i want to make invalidate in the first class to draw by onpaint method in the first class Generator
-
Hi all, i have two classes(one for form that i draw on it, and other class) so i want to make invalidate in the first class to draw by onpaint method in the first class Generator
Can't be done. Instead, create a delegate between the classes, so the class that forced invalidation either calls a method that calls invalidate in the second class, or passes it's graphics object to the second class for painting. You can't make the event args in the second class contain the graphics object of the first class.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )