Editor for WinForms Task-Based Help > Changing the C1Editor Mode |
The C1Editor control features three editor modes: Design, Source, and Preview. You can determine which of these views users will see initially by setting the Mode property.
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Imports C1.Win.C1Editor |
To write code in C#
C# |
Copy Code
|
---|---|
using C1.Win.C1Editor; |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1Editor1.Mode = EditorMode.Source |
To write code in C#
C# |
Copy Code
|
---|---|
c1Editor1.Mode = EditorMode.Source; |
Note:Please note this sample changes the editor mode to Source. You can also set this property to Design or Preview. |