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

C# .NET

Let the User Pick a Font with FontDialog in C#

November 25, 2026July 12, 2014 by turgay

Show the WinForms FontDialog, preselect the current font, add color and a live Apply preview, and handle Cancel correctly.

Categories C# .NET, WinForms Tags C#, font dialog, FontDialog, select a font Leave a comment

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
Older posts
Newer posts
← Previous Page1 … Page6 Page7 Page8 … Page17 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