Skip to content

C# Examples

  • Home
  • About C#
    • C# Interview Questions and Answers for .NET Developers
    • Learn C#: A Practical Path Through the Examples
  • All Posts
  • Bootstrap 5 Examples
  • Contact

turgay

Let the User Pick a Color with ColorDialog in C#

November 25, 2026July 12, 2014 by turgay

Show the WinForms ColorDialog, preselect a color, keep the user’s custom colors between calls and avoid the Color equality trap.

Categories C# .NET, WinForms Tags C#, color dialog, ColorDialog, pick a color Leave a comment

Read and Write Registry Keys and Values in C#

November 25, 2026July 12, 2014 by turgay

Create, read, update and delete Windows registry values in C# with Microsoft.Win32.Registry, with the value-type, 32/64-bit and permission traps explained.

Categories C# .NET Tags C#, read a registry key, write a registry key 1 Comment

Play the Default Windows System Sounds in C#

November 25, 2026July 12, 2014 by turgay

Play the Windows Beep, Asterisk, Exclamation, Hand and Question sounds from C# with SystemSounds, and why some of them stay silent.

Categories C# .NET Tags C#, play default windows sounds Leave a comment

Save a File with SaveFileDialog in C# (WinForms)

November 25, 2026July 12, 2014 by turgay

Ask the user where to save a file with the WinForms SaveFileDialog: filters, default extension, overwrite prompt, and writing the file safely.

Categories C# .NET, WinForms Tags C#, save a file, save file dialog usage 1 Comment

Select a File with OpenFileDialog in C# (WinForms)

November 25, 2026July 12, 2014 by turgay

Let the user pick one or more files with the WinForms OpenFileDialog, filter by type, and read the selected file without freezing the UI.

Categories C# .NET, WinForms Tags C#, open a file, open file dialog usage, select a file Leave a comment
Older posts
Newer posts
← Previous Page1 … Page10 Page11 Page12 … Page21 Next →

Categories

Recent Posts

  • Select XML Nodes by Name or Attribute Value in C#
  • Binary Search Tree in C#: Add, Find, Remove and Traversals
  • Select, Insert, Update and Delete Data in an Access File with C#
  • C# Collections: Which One to Use and When
  • C# ArrayList vs Generic List: Examples and When to Use Each
  • About
  • Privacy Policy
  • Contact
© 2026 C# Examples