FormComboBoxControl.hideFirstEntry Method

Definition

Overloads

hideFirstEntry()

Sets or returns a value that indicates whether the first entry in the combo box control is hidden.

hideFirstEntry(Boolean)

hideFirstEntry()

Sets or returns a value that indicates whether the first entry in the combo box control is hidden.

public:
 virtual bool hideFirstEntry();
public virtual bool hideFirstEntry ();
abstract member hideFirstEntry : unit -> bool
override this.hideFirstEntry : unit -> bool
Public Overridable Function hideFirstEntry () As Boolean

Returns

true if the first entry in the combo box control is hidden; otherwise, false.

Remarks

By hiding the first entry in the combo box control, you enable the control to emulate the behavior of an enum database field where the Mandatory property is set to Yes.

The following example shows how to return and set the value that indicates whether the first entry in the combo box control is hidden.

boolean bHideFirstEntry; 
// The ctrl variable was previously assigned 
// as a form combo box control type. 
// Retrieve the hideFirstEntry value. 
bHideFirstEntry = ctrl.hideFirstEntry(); 
// Set the hideFirstEntry value. 
bHideFirstEntry = ctrl.hideFirstEntry(true);

Applies to

hideFirstEntry(Boolean)

public:
 virtual bool hideFirstEntry(bool _value);
public virtual bool hideFirstEntry (bool _value);
abstract member hideFirstEntry : bool -> bool
override this.hideFirstEntry : bool -> bool
Public Overridable Function hideFirstEntry (_value As Boolean) As Boolean

Parameters

_value
Boolean

A value that indicates whether the first entry in the combo box control is hidden; optional.

Returns

Applies to