---
title: "IImageList..::.SetDefaultImage Method (IntPtr)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_IImageList_SetDefaultImage_1_4cd1f3f7.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/)

# IImageList.SetDefaultImage Method (IntPtr)
 
Inserts a new default icon into the image list.
 
**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
  
```
Sub SetDefaultImage ( _icon As IntPtr _
)
```
 
```csharp
void SetDefaultImage(IntPtr icon
)
```
 
### Parameters
 
 - icon
     - Type: [System.IntPtr](http://msdn2.microsoft.com/en-us/5he14kz8)
Handle to the icon that should be inserted into [IImageList](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_IImageList.htm.md) and marked as default.
 
## Remarks
  
This icon will replace a previously added default icon.
   
## See Also

### Reference

- [IImageList Interface](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_IImageList.htm.md)
- [SetDefaultImage Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_WinControls_IImageList_SetDefaultImage.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
