---
title: "BitmapViewer..::.InvalidateViewer Method (InvalidationTarget)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_BitmapViewer_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/)

# BitmapViewer.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 Overrides Sub InvalidateViewer ( _target As InvalidationTarget _
)
```
 
```csharp
public override 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).
 
This method allows repainting of a specific object belonging to the control.
   
## See Also

### Reference

- [BitmapViewer Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_BitmapViewer.htm.md)
- [InvalidateViewer Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_WinControls_BitmapViewer_InvalidateViewer.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
