ComponentOne WebEditor for ASP.NET: WebEditor for ASP.NET Task-Based Help > Changing the Screen Mode

Changing the Screen Mode

If you want to start C1WebEditor in full screen mode (covers the entire browser the control is displayed in) at run time, then set the FullScreenMode property to True at design time. There are various modes available to change this property, each method is described below.

To Set the Screen Mode Using the Property Builder

To set the screen mode to full screen, complete the following tasks:

1.   Click the smart tag () and from the C1WebEditor Tasks menu, click the Property builder icon.

The C1WebEditor Properties editor appears.

2.   From the C1WebEditor Properties editor's General tab, check the Full screen mode check box.

 

3.   Click OK to close the editor.

To Set the Screen Mode Using the Properties Window

To set the screen mode to full screen, complete the following tasks:

1.   Select the C1WebEditor to activate the control and display its properties in the Properties window.

2.   Set the FullScreenMode property to True.

To Set the Screen Mode Programmatically

To set the screen mode to full screen, add the following code to your project:

      Visual Basic

' type the Imports directive for the namespace

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    ' full screen mode

    Me.C1WebEditor1.FullScreenMode = True

End Sub

      C#

// type the using directive for the namespace

using C1.Web.Editor;

 

protected void Page_Load(object sender, EventArgs e)

{

    // full screen mode

    this.C1WebEditor1.FullScreenMode = true;

}


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.
￿