winforms

  • C# Application Not Responding Issue on Long Running Threads

    Undoubtedly many of you have encountered the dreaded “Application Not Responding” message, programmers and non-programmers alike. In general, this is caused by the OS misinterpretation of long delays in form refresh, even though these can easily be caused by a… Continue reading

  • Get Selected Item from ListBox in Winforms C# and VB .Net

    Iterate through all items: Find specific item text: More generalized for re-usability to get text or value, though a little less readable and alot more code: Continue reading

  • Change WPF Toolbar and Window Skin

    Took me some Googling to come across some good links to help me find exactly what I was looking to do. Hopefully my post gets enough hits that you’ll come across my title sooner rather than later, and can benefit… Continue reading

  • URL Decode in WPF

    Crossing from web to forms development you may notice System.Web is not available. You could extract it from the GAC, but would suffer from having to manually update it moving forward. One solution on the web suggested using Microsoft.XSS library… Continue reading

  • Winforms Databinding

    Snippets below have been condensed from their original sources for brevity. See references for original articles. Dataset usage: Binding DataGridView: References: MSDN, “DataSet Class”, http://msdn.microsoft.com/en-us/library/system.data.dataset.aspx MSDN, “How to: Bind Data to the Windows Forms DataGridView Control”, http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx Continue reading