DIAdemヘルプ

Object: EditBox

  • 更新日2024-09-12
  • 7分で読める

Object: EditBox

The EditBox object corresponds to the EditBox control in a user dialog box. You use the EditBox object to define a textbox that is to be displayed in the dialog box.

You can link the textbox to a SpinBox. You use the Tab Order dialog box to change the order of the SpinBox and the EditBox in the dialog box. If you include a SpinBox in a user dialog box directly after including an EditBox, the two controls are automatically linked. You can then use the SpinBox to edit the numeric value in the EditBox. You can use the EditBuddy property for the SpinBox to disable the link.

The following example uses the VBS color constant vbBlue to specify the text color for the entry field:

EditBox1.ForeColor = vbBlue