ComponentOne Window for ASP.NET AJAX: Window for ASP.NET AJAX Task-Based Help > Customizing the Caption Bar > Hiding Caption Bar Buttons

Hiding Caption Bar Buttons

By default the C1Window control displays the Minimize, Maximize, and Close buttons. Hiding these buttons is simple and can be done in either the designer or in code.

In Source View

To hide the Minimize, Maximize, and Close buttons add text to the <CaptionButtons> tag so it appears similar to the following:

<CaptionButtons>

    <CollapseExpandButton Visible="False" />

    <CloseButton Visible="False" />

    <Icon Visible="True" />

    <MaximizeButton Visible="False" />

    <MinimizeButton Visible="False" />

    <PinButton Visible="False" />

    <ReloadButton Visible="False" />

</CaptionButtons>

In Design View

To hide the Minimize, Maximize, and Close buttons in the designer, navigate to the Properties window and complete the following steps:

      Set the MinimizeButton.Visible property to False.

      Set the MaximizeButton.Visibleproperty to False.

      Set the CloseButton.Visible property to False.

 

In Code

To hide the Minimize, Maximize, and Close buttons, add the following code to the Page_Load event:

      Visual Basic

C1Window1.CaptionButtons.MinimizeButton.Visible = False

C1Window1.CaptionButtons.MaximizeButton.Visible = False

C1Window1.CaptionButtons.CloseButton.Visible = False

      C#

C1Window1.CaptionButtons.MinimizeButton.Visible = false;

C1Window1.CaptionButtons.MaximizeButton.Visible = false;

C1Window1.CaptionButtons.CloseButton.Visible = false;


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.