---
title: "Using Navigators and Rubberbands (Windows Forms)"
canonical: https://www.graphicsmill.com/docs/gm5/UsingNavigatorsandRubberbandsWindowsForms.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/)

# Using Navigators and Rubberbands (Windows Forms)
 
[BitmapViewer](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_BitmapViewer.htm.md) control can be used not only to display the image at the screen. Using special controls it can process user input at the displayed image. For example, it can zoom an image at mouse click, pan it on mouse move, or select a portion of the image. These controls are called *controllers*. There are two kinds of controllers - navigators and *rubberbands*.
 
Navigator is a control which specifies how the user can navigate the image (scroll, or zoom). For example, this control can zoom the image in by the mouse click ([ZoomInNavigator](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ZoomInNavigator.htm.md)). To associate it with the BitmapViewer, you should use the property [Navigator](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WinControls_ViewerBase_Navigator.htm.md).
 
Rubberband is a geometric shape which can be added to the BitmapViewer, moved, or resized. Graphics Mill for .NET currently supports three kinds of rubberbands: rectangles, ellipses and a special rubberband that allows drawing vector objects with the BitmapViewer control. You can read more about the latter type of the rubberbands in the [Using V-objects With the BitmapViewer Control](https://www.graphicsmill.com/docs/gm5/BitmapViewerAndVectorObjects.htm.md) topic.
 
To associate a rubberband with the BitmapViewer, use the property [Rubberband](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WinControls_ViewerBase_Rubberband.htm.md).
 
You can associate an user input controller to the BitmapViewer in design time in the following way:
 
1. Find necessary controller at the component toolbox (it should be near the BitmapViewer).
2. Drag it at the form.
3. Open properties of the BitmapViewer.
4. Change the property Navigator to the appropriate navigator control name and the property Rubberband to the necessary rubberband name.

It should be looking similar to the following screenshots:
 
![Visual Studio screenshot](https://www.graphicsmill.com/docs/gm5/UsingNavigatorsWindowsForms.png)
 
![Visual Studio screenshot](https://www.graphicsmill.com/docs/gm5/UsingRubberbandsWindowsForms.png)
 
You can also modify these properties in the run-time. It is convenient when you are creating the toolbar.
 
Graphics Mill for .NET is shipped with the following controllers:
 
- [!\[PanNavigator icon\](https://www.graphicsmill.com/docs/gm5/PanNavigator.gif) **PanNavigator**](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_PanNavigator.htm.md) - this control is responsible for image panning when mouse left button is pressed and mouse moved.
- [!\[ZoomInNavigator icon\](https://www.graphicsmill.com/docs/gm5/ZoomInNavigator.gif) **ZoomInNavigator**](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ZoomInNavigator.htm.md) - this control is responsible for zooming the image in when user clicks the mouse button at some image point. The portion of image user clicked at is centered.
- [!\[ZoomOutNavigator icon\](https://www.graphicsmill.com/docs/gm5/ZoomOutNavigator.gif) **ZoomOutNavigator**](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ZoomOutNavigator.htm.md) - this control is responsible for zooming the image out when user clicks the mouse button at some image point. The portion of image user clicked at is centered.
- [!\[ZoomRectangleNavigator icon\](https://www.graphicsmill.com/docs/gm5/ZoomRectangleNavigator.gif) **ZoomRectangleNavigator**](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ZoomRectangleNavigator.htm.md) - this control is a combination of the [RectangleRubberband](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_RectangleRubberband.htm.md) and the ZoomInNavigator. When user presses mouse button and start dragging, selection is drawn. When mouse button is released, the image is zoomed to display the selected image portion only.
- [!\[RectangleRubberband icon\](https://www.graphicsmill.com/docs/gm5/RectangleRubberband.gif) **RectangleRubberband**](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_RectangleRubberband.htm.md) - this control is responsible for drawing rectangular selection at the image. You can also edit the rectangle (move or resize). Rectangle resizing may be restricted by fixed proportions which is useful when it is used for cropping selection.
- [!\[EllipseRubberband icon\](https://www.graphicsmill.com/docs/gm5/EllipseRubberband.gif) **EllipseRubberband**](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_EllipseRubberband.htm.md) - this control is responsible for drawing elliptical selection at the image. You can also edit the ellipse (move or resize). The resizing may be restricted by fixed proportions which is useful when selection is used for crop.
- [!\[EllipseRubberband icon\](https://www.graphicsmill.com/docs/gm5/VObjectsRubberband.gif) **VObjectsRubberband**](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_VObjectsRubberband.htm.md) - this control is responsible for adding vector objects to the image.

**Note** 
All controllers except of VObjectsRubberband are located in the Aurigma.GraphicsMill.WinControls.dll assembly. The VObjectsRubberband is located in the Aurigma.GraphicsMill.WinControls.VectorObjects.dll assembly.
 
## See Also
  
### Manual
 
- [Using V-objects With the BitmapViewer Control](https://www.graphicsmill.com/docs/gm5/BitmapViewerAndVectorObjects.htm.md)
- [Using Navigators and Rubberbands (Windows Forms)](https://www.graphicsmill.com/docs/gm5/UsingNavigatorsandRubberbandsWindowsForms.htm.md)
