A domain specific language for creating layout using Windows Forms. The snippet implements combinators for creating controls and simple automatic arrangement of them.
43 people like thisPosted: 14 years ago by Tomas Petricek
Simple RichTextBox SQL highlighting with win32 LockWindowUpdate DllImport
7 people like thisPosted: 13 years ago by nCdy
A quick-and-dirty editor for discriminated unions in a property grid. I use this for editing trees of F# records and unions. Note that any records must have a "Default" static property which returns a default instance.
3 people like thisPosted: 13 years ago by Rick Minerich
SortableBindingList suitable for use with WinForms DataGridView.
2 people like thisPosted: 7 years ago by Mike Weiss
Flappy bird clone script using WinForms, click the mouse or hit space to flap, no collision detection.
6 people like thisPosted: 2 years ago by Phillip Trelford
Several WinForms controls, like TreeView and ListView, implement methods BeginUpdate and EndUpdate, which suspend repainting of the control while items are being individually added to a control, preventing flicker caused by rapid repainting. But using BeginUpdate and EndUpdate is very imperative, and opens up the possibility for bugs, such as neglecting to call the matching EndUpdate. An obvious improvement would be to create an extension method on types implementing this pattern which takes a unit -> unit lambda which is executed between update pairs. But the pattern is only conventional, rather than through a common base class or interface. Hence this presents a reasonable opportunity to use F#'s statically resolved structural type system to implement a function which only works on Control types with the correct structural signature.
3 people like thisPosted: 13 years ago by Stephen Swensen
Quick example of using drag-n-drop with WinForms.
4 people like thisPosted: 13 years ago by MichaelGG
The standard windows.forms text box supports auto-completion, but only for single-line text boxes. The code below can be used to add auto-completion against a fixed set of words to any text box that inherits from TextBoxBase.
5 people like thisPosted: 12 years ago by Johann Deneux
The code snippet for working with Windows Forms DatagridView with filtering and sorting features.
2 people like thisPosted: 3 years ago by Vladimir Demydov