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 mask password fields.
Get
VB.NET | Pswd = object.PswdChar As String |
VB | Pswd = object.PswdChar As String |
C#.NET | string Pswd = object.PswdChar; |
VC++ | _bstr_t Pswd = object->PswdChar; _bstr_t Pswd = object->GetPswdChar(); |
C | HRESULT object->get_PswdChar(BSTR* Pswd); |
Put
VB.NET | object.PswdChar = Pswd As String |
VB | object.PswdChar = Pswd As String |
C#.NET | string object.PswdChar = Pswd; |
VC++ | _bstr_t object->PswdChar = Pswd; void object->PutPswdChar(_bstr_t Pswd); |
C | HRESULT object->put_PswdChar(BSTR Pswd); |
object
Pswd
Defines the character used to mask password fields. Only one single character can be specified. If an empty string is specified, no password masking character is defined.
The PswdChar property defines the character used to mask password fields.
When used with a Masked Edit control (with Mask), all text defined using the <p subtoken is masked using the specified password character. It is possible to mask only portions of an edit control using the <p subtoken.
When used with a simple edit control (without Mask), all text is masked using the specified password character.
If no password masking character is defined, text is displayed as-is.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AxSftMask1.Caption.SizePercent = 33 AxSftMask1.Caption.Text = "&Password" AxSftMask1.PromptUnderline = False AxSftMask1.Mask = "" AxSftMask1.PswdChar = "*" AxSftMask1.MaxLength = 16 End Sub
Private Sub Form_Load() SftMask1.Caption.SizePercent = 33 SftMask1.Caption.Text = "&Password" SftMask1.PromptUnderline = False SftMask1.Mask = "" SftMask1.PswdChar = "*" SftMask1.MaxLength = 16 End Sub
private void Form1_Load(object sender, System.EventArgs e) { axSftMask1.Caption.SizePercent = 33; axSftMask1.Caption.Text = "&Password"; axSftMask1.PromptUnderline = false; axSftMask1.Mask = ""; axSftMask1.PswdChar = "*"; axSftMask1.MaxLength = 16; }
m_pMask1 = m_Mask1.GetControlUnknown(); _ASSERT(m_pMask1 != NULL); m_pMask1->Caption->SizePercent = 33; m_pMask1->Caption->Text = _T("&Password"); m_pMask1->PromptUnderline = VARIANT_FALSE; m_pMask1->Mask = _T(""); m_pMask1->PswdChar = _T("*"); m_pMask1->MaxLength = 16; return TRUE; // return TRUE unless you set the focus to a control }
See Also SftMask Object | Object Hierarchy