Winforms code snippets (38)
How to open message box
Published: 1. February 2012 | Updated: 1. February 2012Categories: Winforms WPF
Tags: C# UI Windows Winforms WPF
How to change cursor
Published: 14. December 2008 | Updated: 10. November 2011Categories: Winforms
Tags: C# UI Windows Winforms
How to find out whether form is active
Published: 27. October 2011 | Updated: 27. October 2011Categories: Winforms
Tags: C# UI Winforms
How to hide windows form
Published: 27. October 2011 | Updated: 27. October 2011Categories: Winforms
Tags: C# UI Winforms
How to list all open forms in Winforms
Published: 27. October 2011 | Updated: 27. October 2011Categories: Winforms
Tags: C# UI Winforms
How to close a form in Winforms
Published: 27. October 2011 | Updated: 27. October 2011Categories: Winforms
Tags: C# UI Winforms
How to minimize form in Winforms
Published: 27. October 2011 | Updated: 27. October 2011Categories: Winforms
Tags: C# UI Winforms
How to get handle of a window
Published: 27. October 2011 | Updated: 27. October 2011Categories: Winforms
Tags: C# Winforms
How to manually create and fill DataTable
Published: 14. December 2008 | Updated: 26. October 2011Categories: Databases Winforms
Tags: C# SQL Webforms Winforms WPF
How to get color input from user using ColorDialog
Published: 14. December 2008 | Updated: 21. October 2011Categories: GDI Winforms
Tags: C# Colors Winforms
How to disable mouse in Winforms
Published: 14. October 2011 | Updated: 14. October 2011Categories: Winforms
Tags: C# Winforms
How to hide form from taskbar and Alt+TAB
Published: 22. January 2009 | Updated: 12. October 2011Categories: Winforms
Tags: C# Windows Winforms
How to get working directory / location
Published: 9. October 2011 | Updated: 9. October 2011Categories: Consoles Directories Winforms
Tags: C# Console Winforms WPF
How to exit application
Published: 9. October 2011 | Updated: 9. October 2011Categories: Consoles Winforms
Tags: C# Console Winforms
How to get focused control
Published: 27. January 2009 | Updated: 9. October 2011Categories: Win32 Winforms
Tags: C# Controls Win32 Winforms
How to convert handle to form
Published: 15. January 2009 | Updated: 26. September 2011Categories: Unsafe Code Winforms
Tags: C# Controls Windows Winforms
How to show/hide mouse cursor
Published: 22. January 2009 | Updated: 22. January 2009Categories: Winforms
Tags: C# Windows Winforms
How to choose font using FontDialog
Published: 21. January 2009 | Updated: 21. January 2009Categories: Winforms
Tags: C# Winforms
How to show help file
Published: 21. January 2009 | Updated: 21. January 2009Categories: Winforms
Tags: C# Controls Winforms
How to show online help
Published: 21. January 2009 | Updated: 21. January 2009Categories: Winforms
Tags: C# Controls Winforms
How to show help pop-up window
Published: 21. January 2009 | Updated: 21. January 2009Categories: Winforms
Tags: C# Controls Winforms
How to save / load RTF document using RichTextBox
Published: 21. January 2009 | Updated: 21. January 2009Categories: Winforms
Tags: C# Text Winforms
How to keep a form always on top
Published: 21. January 2009 | Updated: 21. January 2009Categories: Winforms
Tags: C# Winforms
How to get active MDI child
Published: 21. January 2009 | Updated: 21. January 2009Categories: Winforms
Tags: C# Winforms
How to choose folder using FolderBrowserDialog
Published: 21. January 2009 | Updated: 21. January 2009Categories: Directories Winforms
Tags: C# Windows Winforms
How to send keys to application
Published: 8. January 2009 | Updated: 8. January 2009Categories: Winforms
Tags: C# Windows Winforms
How to stop playing background sound
Published: 8. January 2009 | Updated: 8. January 2009Categories: Winforms
Tags: C# Media Windows Winforms
How to play sound in C#
Published: 8. January 2009 | Updated: 8. January 2009Categories: Winforms
Tags: C# Media Windows Winforms
How to get currently active form for application
Published: 8. January 2009 | Updated: 8. January 2009Categories: Winforms
Tags: C# Controls UI Winforms
How to flash form taskbar button
Published: 21. December 2008 | Updated: 21. December 2008Categories: Win32 Winforms
Tags: C# UI Win32 Windows Winforms
How to use console output in winforms
Published: 15. December 2008 | Updated: 20. December 2008Categories: Win32 Winforms
Tags: C# Console Win32 Windows Winforms
How to access control from different thread
Published: 15. December 2008 | Updated: 20. December 2008Categories: Threading Winforms
Tags: C# Controls Threading Winforms
How to create MDI form
Published: 18. December 2008 | Updated: 18. December 2008Categories: Winforms
Tags: C# Controls UI Winforms
How to set tooltip for control
Published: 18. December 2008 | Updated: 18. December 2008Categories: Winforms
Tags: C# Controls UI Winforms
How to create control and add to form on the fly
Published: 15. December 2008 | Updated: 15. December 2008Categories: Winforms
Tags: C# Controls UI Winforms
How to disable close 'x' button in winform
Published: 15. December 2008 | Updated: 15. December 2008Categories: Win32 Winforms
Tags: C# UI Windows Winforms
How to create file open dialog
Published: 14. December 2008 | Updated: 14. December 2008Categories: Winforms
Tags: C# File System UI Winforms
How to create file save dialog
Published: 14. December 2008 | Updated: 14. December 2008Categories: Winforms
Tags: C# File System UI Winforms





