# TransientForm class

Namespace: [Grasshopper2.UI](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class TransientForm : Form
```

Provides a form hosting a single control, a custom title bar and an auto-close on focus loss mechanism.

## Constructors

- [TransientForm](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.transientform/ctor.md): Create a new transient form.

## Fields

- [BarHeight](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.transientform/barheight.md): (static)
- [EdgeWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.transientform/edgewidth.md): (static)

## Properties

- [AutoClose](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.transientform/autoclose.md): Gets or sets whether this transient form ought to close automatically on focus loss.
- [HostedControl](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.transientform/hostedcontrol.md): Gets the control hosted in this form.
- [SourceBox](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.transientform/sourcebox.md): Gets or sets the optional source box. If set, the transient form will appear underneath the box.
- [TitleBar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.transientform/titlebar.md): Gets the title bar of this form.
