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
This sample illustrates date, time and number formatting.
This is not an executable sample, so a complete project is not provided. These statements are intended to show basic concepts and the syntax used.
private void Form1_Load(object sender, System.EventArgs e) { string FmtVal; axSftMask1.Calculator.FormatCurrency(48533.85, -1, -1, -1, "", "", -1, -1, "", out FmtVal); MessageBox.Show(FmtVal); string Text; Text = "short"; axSftMask1.Calendar.FormatDate(new DateTime(2000, 8, 1), ref Text); MessageBox.Show(Text); Text = "long"; axSftMask1.Calendar.FormatDate(new DateTime(2000, 8, 1), ref Text); MessageBox.Show(Text); Text = "dddd, MMMM d 'in the year' yyyy"; axSftMask1.Calendar.FormatDate(new DateTime(2000, 8, 1), ref Text); MessageBox.Show(Text); axSftMask1.Calculator.FormatNumber(48533.85, -1, -1, -1, "", "", -1, out FmtVal); MessageBox.Show(FmtVal); Text = ""; axSftMask1.Calendar.FormatTime(new DateTime(2000, 8, 1, 5, 1, 59), ref Text); MessageBox.Show(Text); Text = "'Hour='H 'Mins='m 'Secs='s"; axSftMask1.Calendar.FormatTime(new DateTime(2000, 8, 1, 5, 1, 59), ref Text); MessageBox.Show(Text); short Year, Month, Day, DayOfWeek; axSftMask1.Calendar.GetDateInfo(new DateTime(2006, 7, 14, 5, 49, 23), out Year, out Month, out Day, out DayOfWeek); MessageBox.Show("Year=" + Year.ToString() + " Month=" + Month.ToString() + " Day=" + Day.ToString() + " DayOfWeek=" + DayOfWeek.ToString()); short Hours, Minutes, Seconds; axSftMask1.Calendar.GetTimeInfo(new DateTime(2006, 7, 14, 5, 49, 23), out Hours, out Minutes, out Seconds); MessageBox.Show("Hours=" + Hours.ToString() + " Minutes=" + Minutes.ToString() + " Seconds=" + Seconds.ToString()); }