1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?xml version="1.0" encoding="utf-8"?>
- <Report ScriptLanguage="CSharp" ReportInfo.Description="This report demonstrates how to handle the dialog controls' events to modify the state of other controls. " ReportInfo.Created="05/29/2008 20:21:07" ReportInfo.Modified="03/30/2023 02:34:13" ReportInfo.CreatorVersion="1.0.0.0">
- <ScriptText>using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Windows.Forms;
- using System.Drawing;
- using System.Data;
- using FastReport;
- using FastReport.Data;
- using FastReport.Dialog;
- using FastReport.Barcode;
- using FastReport.Table;
- using FastReport.Utils;
- namespace FastReport
- {
- public class ReportScript
- {
- private void CheckBox1_CheckedChanged(object sender, EventArgs e)
- {
- TextBox1.Enabled = CheckBox1.Checked;
- }
- }
- }
- </ScriptText>
- <Dictionary/>
- <DialogPage Name="Form1" AcceptButton="btnOk" CancelButton="btnCancel" AutoScaleDimensions="192, 192" Font="Segoe UI, 9pt" LoadEvent="" ClientSize="634, 322">
- <ButtonControl Name="btnCancel" Left="462" Top="254" Width="150" Height="46" Anchor="Bottom, Right" Font="Segoe UI, 9pt" TabIndex="0" Text="Cancel" DialogResult="Cancel"/>
- <ButtonControl Name="btnOk" Left="300" Top="254" Width="150" Height="46" Anchor="Bottom, Right" Font="Segoe UI, 9pt" TabIndex="1" Text="OK" DialogResult="OK"/>
- <CheckBoxControl Name="CheckBox1" Left="24" Top="36" Width="558" Font="Segoe UI, 9pt" TabIndex="2" Text="Click this checkbox to enable/disable the TextBox" ClickEvent="" AutoFilter="false" DetailControl="TextBox1" Checked="true" CheckState="Checked" CheckedChangedEvent="CheckBox1_CheckedChanged"/>
- <TextBoxControl Name="TextBox1" Left="24" Top="84" Width="584" Height="40" BackColor="255, 255, 255" Font="Segoe UI, 9pt" TabIndex="3" Text="TextBox1"/>
- </DialogPage>
- <ReportPage Name="Page1" Watermark.Font="Arial, 60pt">
- <DataBand Name="Data1" Width="718.2" Height="75.6">
- <TextObject Name="Text1" Left="9.45" Top="9.45" Width="387.45" Height="56.7" Text="CheckBox checked: [CheckBox1.Checked] TextBox enabled: [TextBox1.Enabled]" Font="Segoe UI, 14pt"/>
- </DataBand>
- <PageFooterBand Name="PageFooter1" Top="77.6" Width="718.2" Height="28.35" Fill.Color="WhiteSmoke">
- <TextObject Name="Text12" Left="9.45" Width="217.35" Height="28.35" Cursor="Hand" Hyperlink.Value="https://www.fast-report.com/en/product/fast-report-net/" Text="Generated by FastReport" VertAlign="Center" Font="Segoe UI, 9pt, style=Underline" TextFill.Color="Blue"/>
- </PageFooterBand>
- </ReportPage>
- </Report>
|