PROfile
All time reputation: 59
Achievement
jimfred's Recent C# Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev [Page 1 of 2] Next »
C# speech c#
C# Speech example
posted on October 18, 2011 by jimfred
C#
Get .CFG or .INI filename based on current application name
posted on October 17, 2011 by jimfred
C#
C# example using WeifenLuo.WinFormsUI.Docking.DockPanel from http://sourceforge.net/projects/dockpanelsuite/
posted on August 21, 2011 by jimfred
C#
Get a web page in a dot.net app.
posted on July 4, 2011 by jimfred
C#
Get current function name
posted on May 24, 2011 by jimfred
C# visual Studio
Use a Visual Studio embedded resource to store binary blobs of data (like a ZIP file)
posted on May 2, 2011 by jimfred
C#
Get assembly name and version into a string.
posted on March 17, 2011 by jimfred
C#
Launch File Explorer for application's current working directory
posted on March 17, 2011 by jimfred
C# RichTextBox
Scroll multiple RichTextBoxes (or TextBoxes) in unison (synchronized scrolling).
posted on March 17, 2011 by jimfred
C# RichTextBox
RichTextBox, append a text string and high-light portions of the string that don't match a reference string.
posted on March 16, 2011 by jimfred
C# saved by 1 person
C#, getting a reference to a property such as CheckBox.Checked
posted on September 12, 2010 by jimfred
C# saved by 1 person
C#, Bind a list of value-name pairs to a combobox
posted on September 11, 2010 by jimfred
C# saved by 1 person
'which' command, in C#
posted on August 9, 2010 by jimfred
C# saved by 2 people
C# WinForm, subclass a Checkbox control to create a better two-state button (Adds Checkbox within a Button)
posted on August 7, 2010 by jimfred
C# saved by 1 person
c#, deep compare
posted on July 15, 2010 by jimfred
C# saved by 2 people
Modal Progress dialog with cancel for time-consuming operations, C#, WinForms
posted on July 6, 2010 by jimfred
C# DIB SystemDrawingBitmap saved by 2 people
Convert a DIB* to a System.Drawing.Bitmap
posted on July 2, 2010 by jimfred
C# saved by 1 person
Read all bytes from a file.
posted on March 5, 2010 by jimfred
C#
C# WinForm, cause 'close' ('X') to hide instead of disposing by handling the WM_CLOSE message in WndProc.
posted on February 10, 2010 by jimfred
C# saved by 1 person
C#, draw sine wave on Bitmap and save to a file
posted on February 4, 2010 by jimfred
C# saved by 1 person
C#, convert a double-null-terminated string to an array of strings.
posted on January 29, 2010 by jimfred
C#
#if defined( DEBUG) in C# - use [Conditional("DEBUG")]
posted on January 29, 2010 by jimfred
C#
DataVisualization.Charting.Chart simple example
posted on December 22, 2009 by jimfred
C# saved by 1 person
Linear interpolation, C#
posted on December 21, 2009 by jimfred
C#
Google Protocol Buffers, usage in C#, using Jon Skeet's protobuf-csharp-port
posted on December 8, 2009 by jimfred
C# saved by 2 people
Trivial JSON example, serialization and deserialization
posted on December 2, 2009 by jimfred
C# usb Interop DeviceIOControl Cypress FX2
C# Cypress EEPROM Utility with interop calls to deviceIoControl for access to USB driver.
posted on November 28, 2009 by jimfred
C# saved by 1 person
Input Box, similar to MessageBox, displays a prompt and accepts a string from the user.
posted on November 20, 2009 by jimfred
C#
c#, resize dialog while maintaining aspect ratio by intercepting the WM_SIZING method in WndProc
posted on October 6, 2009 by jimfred
C#
Render names of C# bitfields using enums and FlagsAttribute. Also, adjusting size of enum using, like ushort, for marshalling p
posted on September 14, 2009 by jimfred
C# saved by 3 people
C#, single-instance-check using mutex. Implements a static function to be called in Program::Main().
posted on September 4, 2009 by jimfred
C# saved by 2 people
C#, Get application name
posted on September 4, 2009 by jimfred
C# saved by 1 person
C# reflection to display a struct's members with their descriptions
posted on August 28, 2009 by jimfred
C# saved by 1 person
Simple enumeration of fields of a struct in C# using reflection
posted on August 28, 2009 by jimfred
C# Reflection endian saved by 3 people
C# structs, byte swapping for conversion from big to little endian using reflection to enumerate members
posted on August 15, 2009 by jimfred
C# saved by 2 people
byte swapping using System.Net.IPAddress.NetworkToHostOrder
posted on August 15, 2009 by jimfred
C# c saved by 2 people
Represent int as hex with leading zeros
posted on August 10, 2009 by jimfred
C# c TypeConverter saved by 1 person
PropertyGrid values in hex/hexadecimal using class derived from TypeConverter
posted on July 30, 2009 by jimfred
C# saved by 1 person
#region/#endregion (or #pragma region/endregion in C++)lets you specify a block of code that you can expand or collapse when usi
posted on July 29, 2009 by jimfred
C# Interop DllImport saved by 2 people
C# calling a DLL API, in this case, MessageBox in user32.dll
posted on July 29, 2009 by jimfred