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 start of the selected text.
Get
VB.NET | Start = object.SelStart As Integer |
VB | Start = object.SelStart As Long |
C#.NET | int Start = object.SelStart; |
VC++ | long Start = object->SelStart; long Start = object->GetSelStart(); |
C | HRESULT object->get_SelStart(long* Start); |
Put
VB.NET | object.SelStart = Start As Integer |
VB | object.SelStart = Start As Long |
C#.NET | int object.SelStart = Start; |
VC++ | long object->SelStart = Start; void object->PutSelStart(long Start); |
C | HRESULT object->put_SelStart(long Start); |
object
Start
Defines the start of the selected text. This is the location where the selection begins and is also the insertion point.
The SelStart property defines the start of the selected text.
The selected text or current selection always starts at the index defined by the SelStart property which is also the caret location or insertion point.
The selection extends from the position defined by SelStart towards the end of the text if SelLength is a positive value. If SelLength is a negative value, the selection extends from the position defined by SelStart towards the beginning of the text.
The OptimalPosition method can be used to insure that the insertion point is at a suitable location for data entry.
Option Explicit Private Sub Command1_Click() End End Sub Private Sub Form_Load() SftMaskPhone.Text = "9415058600" ' our phone number SftMaskPhone.SelStart = 1 ' set the input location SftMaskSSN.Text = "444-12-1111" ' a social security number SftMaskToday.Contents.DateTime = Date ' set today's date SftMaskTime.Contents.DateTime = Time SftMaskPercent.Contents.Value(0) = 50 ' start with 50 percent SftMaskAmount.Text = 199 SftMaskIPAddr.Text = "209.61.201.49" End Sub
_ASSERT(m_vSftMaskAmount != NULL); m_vSftMaskIPAddr = GetDlgItem(IDC_SFTMASKIPADDR)->GetControlUnknown(); _ASSERT(m_vSftMaskIPAddr != NULL); m_vSftMaskPswd = GetDlgItem(IDC_SFTMASKPSWD)->GetControlUnknown(); _ASSERT(m_vSftMaskPswd != NULL); // phone number m_vSftMaskPhone->Text = _bstr_t(_T("9415058600")); m_vSftMaskPhone->SelStart = 1; // social security number m_vSftMaskSSN->Text = _bstr_t(_T("444-12-1111")); // today's date m_vSftMaskTodaysDate->Contents->DateTime = COleDateTime::GetCurrentTime();;
See Also SftMask Object | Object Hierarchy