Re: Control Painting

Fabian Schmied <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <[email protected]>
> > // this will explicitly cause the control to refresh itself and your
> > figure to be drawn
> > public void CauseFigureToBeDrawnOnThisControl()
> > {
> >   this.Invalidate();
> > }
>
> Personally I would call that method public void Refresh() to fit into
> the way controls work, or public void DrawFigure() so you don't need to
> refactor any client code, but that's just semantics and personal
> preference

Yeah, that's a rather unrealistic name which I thought would best
communicate what this method is good for in this explanation.
(Actually, I later added the comment and wanted to rename the method,
but forgot. Well...)

Fabian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.