---
title: "ViewerBase..::.InvalidateViewer Method (InvalidationTarget)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_ViewerBase_InvalidateViewer_1_84bbcf7b.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# ViewerBase.InvalidateViewer Method (InvalidationTarget)
 
Invalidates the specified target of the control and causes it to be repainted.
 
**Namespace:** [Aurigma.GraphicsMill.WinControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)
 
## Syntax
  
```
Public MustOverride Sub InvalidateViewer ( _target As InvalidationTarget _
)
```
 
```csharp
public abstract void InvalidateViewer(InvalidationTarget target
)
```
 
### Parameters
 
 - target
     - Type: [Aurigma.GraphicsMill.WinControls.InvalidationTarget](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_InvalidationTarget.htm.md)
A descendant of the [InvalidationTarget](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_InvalidationTarget.htm.md) class that needs to be repainted.
 
## Remarks
  
It is recommended to use this method instead of [System.Windows.Forms.Control.Invalidate](http://msdn2.microsoft.com/en-us/598t492a).
   
## See Also

### Reference

- [ViewerBase Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ViewerBase.htm.md)
- [InvalidateViewer Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_WinControls_ViewerBase_InvalidateViewer.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
