P
Peter Oliphant
I now have graphics being drawn in the Paint event of my form (yeah, and
it's very cool). Problem was that it only updated any changes to these
graphics when Paint was called.
So, I then made it so the Refresh() method of the form was called for each
graphic object. In this case it drew just fine, but Paint was being called
so often I lost control of the form (e.g., trying to close the form using
the close 'x' in upper right corner resulted in an hour-glass icon and no
action). I then made it so it only called refresh once every so often. Now
all is good...
BUT - I'd like to be able to refresh only a portion (rectangular region) of
the form for speed. I notice all the .NET Control's can do this. I also
don't think the Control's Refresh() has an overloaded version that
establishes the rectangle of refresh.
Is there a 'region refresh' for controls (or possibly just for containers or
forms), and what is it if it does exist?
Thanks in advance! : )
[==P==]
it's very cool). Problem was that it only updated any changes to these
graphics when Paint was called.
So, I then made it so the Refresh() method of the form was called for each
graphic object. In this case it drew just fine, but Paint was being called
so often I lost control of the form (e.g., trying to close the form using
the close 'x' in upper right corner resulted in an hour-glass icon and no
action). I then made it so it only called refresh once every so often. Now
all is good...
BUT - I'd like to be able to refresh only a portion (rectangular region) of
the form for speed. I notice all the .NET Control's can do this. I also
don't think the Control's Refresh() has an overloaded version that
establishes the rectangle of refresh.
Is there a 'region refresh' for controls (or possibly just for containers or
forms), and what is it if it does exist?
Thanks in advance! : )
[==P==]