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 progressbar's maximum position value.
Class: ProgressBarPartClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public int Max { get; set; }
Public Property Max As Integer
The minimum value.
The default value is 100.
Defines the progressbar's maximum position value.
A progressbar displays a gauge defined by the minimum and maximum values ProgressBarPartClass.Min and Max, with the current position ProgressBarPartClass.Value. The ProgressBarPartClass.Value property must always be between Min and Max.
Max must be greater or equal to ProgressBarPartClass.Min.
// this is the cell containing the button
CellClass cell = (CellClass)bp.PartOwner;
// get the previous cell
cell = cell.Previous;
// this cell's first (and only) part is a progressbar (in this example)
ProgressBarPartClass pbp = (ProgressBarPartClass) cell.Parts[0];
// increment the progressbar's Value property
int val;
if (pbp.Value == pbp.Max)
val = 0;
else
val = pbp.Value + 10;
val = Math.Min(val, pbp.Max);
pbp.Value = val;
}
' this is the cell containing the button
Dim cell As CellClass = bp.PartOwner
' get the previous cell
cell = cell.Previous
' this cell's first (and only) part is a progressbar (in this example)
Dim pbp As ProgressBarPartClass = cell.Parts(0)
' increment the progressbar's Value property
Dim Val As Integer
If pbp.Value = pbp.Max Then
Val = 0
Else
Val = pbp.Value + 10
End If
Val = Math.Min(Val, pbp.Max)
pbp.Value = Val
End SubSee Also ProgressBarPartClass Class | Classes | SftTree/NET 2.0
