Nick Asseloos from Asoft continues his series looking at undocumented Windows Home Server Classes, releasing a new guide to the MiscUtils class.
The following functions are explained:
- string DropSecondsFromTimeFormat(string timeFormat)
- string FormatDescriptionToFixedWidth(string description, int maxChars)
- uint GetPercentage(long value, long total)
- bool IsCorrectLogonName(string name)
- bool IsLetterOrDigit(string name)
- bool IsValidHelpFile(string helpFileName)
- string LastPieceOfThePathName(string name)
- string LegibleDateTime(DateTime dateTime)
- string LegibleDuration(TimeSpan duration)
- string LegibleExcludedFolderName(string name)
- string LegibleFolderNameSize(string name, long size)
- string LegibleLocalDateTime(DateTime dateTime)
- string LegibleSize(long lSizeInBytes)
- string LegibleSize(long lSizeInBytes, int decimalPlaces)
- string LegibleSize(long lSizeInBytes, int decimalPlaces, int maxLength)
- string LegibleVolumeName(string volumeName, string mountPoint)
- DateTime LocalTime(DateTime timeUTC)
- string NameFromFriendlyPieces(string volumeFriendlyName, string folderName)
- string PathNameWithoutLastPiece(string name)
- bool SafeCharacters(string name)
- bool SafeCharactersSafeEnding(string name)
- bool SafeNameCharacters(string name)
- void SetEnabled(Control control, bool enabled)
- void SetImage(PictureBox control, System.Drawing.Image image)
- void SetText(Control control, string text)
- void SetValue(ProgressBar control, int value)
- void SetVisible(Control control, bool visible)
- void AddLineToTextbox(TextBox control, string line)
- string StripDriveLetter(string s)
- string StripMnemonicChar(string text)
Obviously, these kind of articles are for a specific audience, but if you’re a developer, then dive right in!
More Info: Asoft Blog








This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.