Setting the Caption Bar Title
You can set a title to appear at the top of a C1Window dialog window in the caption bar. The title can indicate the content of the dialog window or give context to the content. Adding a title can also make minimized dialog windows easier to identify. You can easily set the title in Source view, in Design view, or in code using the Text property.
In Source View
To add a title to the caption bar add Text="" to the <cc1:Window> tag so it appears similar to the following:
<cc1:C1Window ID="C1Window1" runat="server" Text="Hello World!">
<CaptionButtons>
<CollapseExpandButton Visible="False" />
<CloseButton Visible="True" />
<Icon Visible="True" />
<MaximizeButton Visible="True" />
<MinimizeButton Visible="True" />
<PinButton Visible="False" />
<ReloadButton Visible="False" />
</CaptionButtons>
</cc1:C1Window>
In Design View
To add a title to the caption bar using the designer, navigate to the Properties window and set the Text property to the title:
In Code
To add a title to the caption bar, add the following code to the Page_Load event:
C1Window1.Text = "Hello World!"
• C#
C1Window1.Text = "Hello World!";
|