ComponentOne Window for ASP.NET AJAX: Window for ASP.NET AJAX Task-Based Help > Customizing the Dialog Window > Setting the Height and Width

Setting the Height and Width

You can adjust the height and width of the C1Window dialog window in the designer or in code.

In Source View

To set the height and width of the C1Window dialog window add text to the <cc1:Window> tag so it appears similar to the following:

<cc1:C1Window ID="C1Window1" runat="server" Height="100px" Width="200px">

    <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 set the height and width of the C1Window dialog window in the designer, simply drag the bottom right corner of the dialog window to set the initial dialog window size:

 

 

Or

 

To set the height and width of the C1Window dialog window in the Properties window, expand the Layout node and enter the Height and Width properties in the Properties window:

 

In Code

To set the height and width of the C1Window dialog window in code, add the following code to the Page_Load event:

      Visual Basic

' Set the dimensions of the dialog window to 100 pixels tall and 200 pixels wide.

C1Window1.Height = Unit.Pixel(100)

C1Window1.Width = Unit.Pixel(200)

      C#

// Set the dimensions of the dialog window to 100 pixels tall and 200 pixels wide.

C1Window1.Height = Unit.Pixel(100);

C1Window1.Width = Unit.Pixel(200);


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