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
Returns the number of filenames in the DataObject.Files collection (sftCFFiles format only).
Get
VB.NET | Total = object.Count As Integer |
VB | Total = object.Count As Long |
C#.NET | int Total = object.Count; |
VC++ | long Total = object->Count; long Total = object->GetCount(); |
C | HRESULT object->get_Count(long* Total); |
object
Total
Returns the number of filenames in the DataObject.Files collection (sftCFFiles format only).
The Count property returns the number of filenames in the DataObject.Files collection (sftCFFiles format only).
This property can be used to iterate through all file names in the Files collection.
AxSftMask1.Mask = ""
AxSftMask1.MaxLength = 300
AxSftMask1.PromptUnderline = False
AxSftMask1.OLEDropMode = SftMaskOLEDropModeConstants.OLEDropSftMaskManual
End Sub
Private Sub AxAxSftMask1_OLEDragDrop(ByVal sender As Object, ByVal e As AxSftMaskLib70._ISftMaskEvents_OLEDragDropEvent) Handles AxSftMask1.OLEDragDrop
If e.data.GetFormat(SftOLEClipboardConstants.sftCFFiles) Then
If e.data.Files.Count > 1 Then
MsgBox("Only one file at a time please.")
Else
AxSftMask1.Text = e.data.Files.Item(1)
End If
End If
End Sub
SftMask1.Mask = ""
SftMask1.MaxLength = 300
SftMask1.PromptUnderline = False
SftMask1.OLEDropMode = OLEDropSftMaskManual
End Sub
Private Sub SftMask1_OLEDragDrop(Data As SftMaskLib70.DataObject, TargetChar As Long, Effect As Long, Button As Integer, Shift As Integer, x As Single, y As Single)
If Data.GetFormat(sftCFFiles) Then
If Data.Files.Count > 1 Then
MsgBox ("Only one file at a time please.")
Else
SftMask1.Text = Data.Files.Item(1)
End If
End If
End Sub
axSftMask1.MaxLength = 300;
axSftMask1.PromptUnderline = false;
axSftMask1.OLEDropMode = SftMaskOLEDropModeConstants.OLEDropSftMaskManual;
}
private void axSftMask1_OLEDragDrop(object sender, AxSftMaskLib70._ISftMaskEvents_OLEDragDropEvent e)
{
if (e.data.GetFormat((short) SftOLEClipboardConstants.sftCFFiles)) {
if (e.data.Files.Count > 1)
MessageBox.Show("Only one file at a time please.");
else
axSftMask1.Text = e.data.Files[1];
}
}
private void axSftMask1_OLEDragOver(object sender, AxSftMaskLib70._ISftMaskEvents_OLEDragOverEvent e)
return TRUE;
}
void CProject1Dlg::OnOLEDragDropSftMask1(LPDISPATCH FAR* Data, long FAR* TargetChar, long FAR* Effect, short FAR* Button, short FAR* Shift, float FAR* x, float FAR* y)
{
IVDMDataObjectPtr pData = *Data;
if (pData->GetFormat(sftCFFiles) != VARIANT_FALSE) {
if (pData->Files->Count > 1)
AfxMessageBox(_T("Only one file at a time please."), MB_OK, 0);
else
m_pMask1->Text = pData->Files->GetItem(1);
}
}
void CProject1Dlg::OnOLEDragOverSftMask1(LPDISPATCH FAR* Data, long FAR* TargetChar, long FAR* Effect, short FAR* Button, short FAR* Shift, float FAR* x, float FAR* y, long FAR* State)
See Also DataObjectFiles Object | Object Hierarchy