Get / set current mode of operation of the FormDesigner.
[Visual Basic] Public Property Mode As ModeOption [C#] public ModeOption Mode { get; set; } [C++] public: __property ModeOption get_Mode(); public: __property void set_Mode(ModeOption ); [JScript] public function get Mode() : ModeOption public function set Mode(ModeOption);
While in design mode, you can instantiate a new component using drag and draw mechanism. For this, you need to set appropriate tool information through CurrentToolType property
From draw mode, the FormDesigner can be switched back to draw and select by setting CurrentToolType to null. Form designer automatically switches back from draw mod eto select mode when a after completion of a drag and draw operation is complete.
This property is not available at design time.
FormDesigner Class | Viklele.Win.Designer Namespace