Referencing to a control from code |
Top Previous Next |
Referencing to a control can be done by using its name:
TextBoxControl1.Text = "my text";
In fact, the FastReport's control is just a wrapper for the standard .Net control. It wraps many, but not all, properties of the standard control. If you need some property that is not implemented by the FastReport control, you may access a wrapped standard control in the following way:
(TextBox1.Control as TextBox).ShortcutsEnabled = false;
TextBox1.TextBox.ShortcutsEnabled = false;
Help on properties and methods of the controls can be accessed from the MSDN.
|