2 blog posts tagged WinForms

NotifyIcon context menus for both buttons in .NET (evolution of a hack)

  • đź“…
  • đź“ť 625
  • đź•™ 3
  • 📦 .NET
  • đź’¬ 6

Here’s the evolution of what should have been a clean reusable component in .NET and how it becomes a hack thanks to the limitation of the .NET framework.

I’m working on an application where I want two contextual menus on the notify icon. The right one will display a number of options for settings and creating new items and the left to switch between the various items.

WinForms tricks & tips

  • đź“…
  • đź“ť 308
  • đź•™ 2
  • 📦 .NET

I’m not sure why it doesn’t do this as standard but a simple event handler should do the trick:

People have asked (in the IRC #CSharp) why adding text to a TextBox is so slow and flickery. Normally they are trying: