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#

NotifyIcon in C#: System Tray Icon, Menu and Balloon Tips

November 25, 2026June 18, 2014 by turgay

Put a WinForms app in the Windows notification area with NotifyIcon, add a right-click menu, show balloon notifications and remove the icon cleanly.

Categories C# .NET Tags C#, message, notify icon Leave a comment

Get an Enum’s Description Attribute Value in C#

November 25, 2026June 17, 2014 by turgay

Read the [Description] attribute of an enum value in C# with a short extension method, handle undefined values, and cache the result.

Categories C# .NET Tags C#, enum, get description 1 Comment

Fibonacci Sequence in C#: Iterative, Recursive and BigInteger

November 25, 2026June 17, 2014 by turgay

Calculate Fibonacci numbers in C# iteratively and recursively, see why the naive recursion is so slow, and avoid the overflow at F(47) and F(93).

Categories C# .NET Tags C#, fibonacci, iterative, print, recursive, sequence, series Leave a comment

Download a File from a URL in C# with HttpClient

November 25, 2026June 16, 2014 by turgay

Download files in C# with HttpClient, asynchronously or synchronously, with progress reporting, cancellation, and no half-written files when a download fails.

Categories C# .NET Tags asynchronous, C#, download files, synchronous, url, web 6 Comments

Convert Numbers to and from Hexadecimal in C#

November 25, 2026June 16, 2014 by turgay

Format integers as hex with the X specifier, parse hex strings back with int.Parse or Convert.ToInt32, and convert byte arrays with Convert.ToHexString.

Categories C# .NET, String Formatting Tags C#, convert, hex value, numeric Leave a comment
Older posts
Newer posts
← Previous Page1 … Page11 Page12 Page13 … Page16 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