User Activity

  • Posted a comment on discussion General Discussion on C# Winforms TimePicker

    Hello, Thanks for your feedback. The use24HourClock only applies to the text value displayed in the spinner control. The graphical clock only supports displaying [1-12] AM/PM for the hours.

  • Posted a comment on discussion General Discussion on C# FastFileInfo

    This is fantastic. Thanks. Does there exists a .NET 6 version of this? Testing in .NET 6 has not been done. Are there any issues when compiling in .NET 6?

  • Posted a comment on ticket #1 on C# Winforms TimePicker

    Sample code: TimePicker timePicker = new TimePicker(0, false, true); var tokens = timePicker.Tokens; tokens.Clear(); timePicker.Mask = "99:99\\ LL"; timePicker.DateTimeFormat = "hh:mm tt"; timePicker.Value = timePicker.TextToValue(timePicker.ValueToText(DateTime.Now)); tokens[0].MinValue = 1; tokens[0].MaxValue = 13; tokens[2].MaxValue = 60; tokens[tokens.Count - 1].CustomValues = new Object[] { "AM", "PM" };

  • Posted a comment on discussion General Discussion on C# FastFileInfo

    There is some inconsistency there. The kernel32.dll FindFirstFileEx method doesn't support multiple filters, so the pipe separated filters was only added to GetFiles but not to EnumerateFiles. The issue with multiple filters is the possibility that the same file is hit by multiple filters. E.g. if there is a file called data.txt and two filters are specified data.*|*.txt then the EnumerateFiles would return data.txt twice. However, the GetFiles(...) method checks for duplicates. EnumerateFiles should...

  • Posted a comment on discussion General Discussion on C# FastFileInfo

    GetFiles(String path, String searchPattern = "*", ...); /// <param name="searchPattern">The search string to match against files in the path. Multiple can be specified separated by the pipe character.

  • Posted a comment on discussion General Discussion on C# FastFileInfo

    A new version has been released with the option to specify an IFolderFilter object. For example, to skip over hidden folders: public class SkipHiddenFolders : IFolderFilter { public bool SearchFolder(FastFileInfo folder) { return !folder.Attributes.HasFlag(FileAttributes.Hidden); } } IList<FastFileInfo> list = FastFileInfo.GetFiles("C:\\temp\\", "*", SearchOption.AllDirectories, new SkipHiddenFolders()); For your purpose, change FileAttributes.Hidden to FileAttributes.ReparsePoint.

  • Posted a comment on discussion General Discussion on C# FastFileInfo

    The Windows FindFirstFileEx method only allows to specify a single filter at a time, and does not have the option to exclude patterns. However, a filter to exclude folders by names could be applied inside the folder enumeration in FastFileInfo. It seems unlikely that excluding .vhdx files specifically would work. I recommend looking at the Attributes of the C:\ProgramData\Microsoft\Windows\Containers\BaseImages folders and see if there's an attribute that could be used to identify the folder as an...

  • Posted a comment on discussion General Discussion on C# FastFileInfo

    It's probably due to hidden files or folders. The f.Attributes will have the Hidden flag set if a file is hidden. However, there is currently no option in FastFileInfo to exclude hidden folders. That would require an enhancement. Alternatively, new Directory(f.DirectoryName).Attributes could be used to determine if a file's immediate parent folder is hidden, and that check would have to be performed for each folder up to the root folder.

View All

Personal Data

Username:
opulos
Joined:
2014-05-24 04:14:24

Projects

This is a list of open source software projects that Opulos Inc. is associated with:

Personal Tools