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 the character used to prompt for input data.
Get
VB.NET | Prompt = object.PromptChar As String |
VB | Prompt = object.PromptChar As String |
C#.NET | string Prompt = object.PromptChar; |
VC++ | _bstr_t Prompt = object->PromptChar; _bstr_t Prompt = object->GetPromptChar(); |
C | HRESULT object->get_PromptChar(BSTR* Prompt); |
Put
VB.NET | object.PromptChar = Prompt As String |
VB | object.PromptChar = Prompt As String |
C#.NET | string object.PromptChar = Prompt; |
VC++ | _bstr_t object->PromptChar = Prompt; void object->PutPromptChar(_bstr_t Prompt); |
C | HRESULT object->put_PromptChar(BSTR Prompt); |
object
Prompt
Defines the character used to prompt for input data. Only one single character can be specified. If an empty string is specified, the space (" ") character is used.
The PromptChar property defines the character used to prompt for input data.
The character defined using the PromptChar property is displayed in input fields where data has not yet been entered. It is a placeholder for "missing" or unspecified data. It is possible to use the underline character ("_") to visually indicate that the data has not yet been entered, but usually the PromptUnderline property should be used instead.
The PromptChar property has no effect if the control is used as a simple edit control (without Mask).
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AxSftMask1.Caption.Text = "Pin &Code:" AxSftMask1.Mask = "<p####>" AxSftMask1.PromptChar = "0" AxSftMask1.PromptUnderline = False AxSftMask1.PromptUnderlineNoFocus = True AxSftMask1.PswdChar = "*" End Sub
Private Sub Form_Load() SftMask1.Caption.Text = "Pin &Code:" SftMask1.Mask = "<p####>" SftMask1.PromptChar = "0" SftMask1.PromptUnderline = False SftMask1.PromptUnderlineNoFocus = True SftMask1.PswdChar = "*" End Sub
private void Form1_Load(object sender, System.EventArgs e) { axSftMask1.Caption.Text = "Pin &Code:"; axSftMask1.Mask = "<p####>"; axSftMask1.PromptChar = "0"; axSftMask1.PromptUnderline = false; axSftMask1.PromptUnderlineNoFocus = true; axSftMask1.PswdChar = "*"; }
{ CDialog::OnInitDialog(); m_pMask1 = m_Mask1.GetControlUnknown(); _ASSERT(m_pMask1 != NULL); m_pMask1->Caption->Text = _T("Pin &Code:"); m_pMask1->Mask = _T("<p####>"); m_pMask1->PromptChar = _T("0"); m_pMask1->PromptUnderline = VARIANT_FALSE; m_pMask1->PromptUnderlineNoFocus = VARIANT_TRUE; m_pMask1->PswdChar = _T("*"); return TRUE; }
See Also SftMask Object | Object Hierarchy