SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines whether the control responds to user-generated events.
Get
VB.NET | Boolean = object.Enabled As Boolean |
VB | Boolean = object.Enabled As Boolean |
C#.NET | bool Boolean = object.Enabled; |
VC++ | VARIANT_BOOL Boolean = object->Enabled; VARIANT_BOOL Boolean = object->GetEnabled(); |
C | HRESULT object->get_Enabled(VARIANT_BOOL* Boolean); |
Put
VB.NET | object.Enabled = Boolean As Boolean |
VB | object.Enabled = Boolean As Boolean |
C#.NET | bool object.Enabled = Boolean; |
VC++ | VARIANT_BOOL object->Enabled = Boolean; void object->PutEnabled(VARIANT_BOOL Boolean); |
C | HRESULT object->put_Enabled(VARIANT_BOOL Boolean); |
object
Boolean
Defines whether the control responds to user-generated events.
Boolean | Description |
---|---|
True | The control is enabled and responds to user-generated events. |
False | The control is disabled and does not respond to user-generated events. |
The Enabled property defines whether the control responds to user-generated events.
' Show the richedit control RichTextBox1.Visible = True RichTextBox1.Enabled = True RichTextBox1.Width = Me.Width RichTextBox1.Height = Me.Height RichTextBox1.Focus() ' Disable & hide the print preview control AxSftPrintPreview1.Visible = False AxSftPrintPreview1.Enabled = False End Sub Private Sub MenuPrintPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuPrintPreview.Click ' Disable & hide the richedit control RichTextBox1.Visible = False RichTextBox1.Enabled = False ' Show the print preview control
ViewRichEdit_Click End Sub Private Sub Preview_Click() ' Hide the RichEdit control RichTextBox1.Enabled = False RichTextBox1.Visible = False ' Show the print preview control SftPrintPreview1.Enabled = True SftPrintPreview1.Visible = True SftPrintPreview1.SetFocus ' In case the tree control changed, we have to reformat everything SftPrintPreview1.Restart restartSftPrintPreviewComplete End Sub Private Sub ViewRichEdit_Click()
// Show the richedit control richTextBox1.Visible = true; richTextBox1.Enabled = true; richTextBox1.Focus(); richTextBox1.Width = this.Width; richTextBox1.Height = this.Height; // Disable & hide the print preview control axSftPrintPreview1.Visible = false; axSftPrintPreview1.Enabled = false; } private void menuPrintPreview_Click(object sender, System.EventArgs e) { // Disable & hide the richedit control richTextBox1.Visible = false; richTextBox1.Enabled = false;
See Also SftPrintPreview Object | Object Hierarchy