Select objects whilst modal open

Hi,

Is there a particular type of form modal that I need to use in order to be able to select objects in the Rhino viewports whilst the modal is open?

Currently by running a modal with either:

Rhino.UI.Dialogs.ShowSemiModal(MyForm())

or,

import clr
clr.AddReference("System.Windows.Forms")
from System.Windows.Forms import Application, Form
Application.Run(MyForm())

…allows me to add objects to the Rhino viewport, and rotate the view, but I cannot select the objects.

The modal doesn’t do anything as yet (displays a label), but eventually I was hoping to have selection events occurring in Rhino trigger actions in the modal.

A modeless form will allow you to show your dialog (form) and select Rhino objects.

http://msdn.microsoft.com/en-us/library/aa984358(v=vs.71).aspx

Is this what you want?