-
Recent Posts
-
Recent Comments
Archives
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- September 2019
- August 2019
- July 2019
- June 2019
- May 2019
- April 2019
- March 2019
- February 2019
- January 2019
- December 2018
- November 2018
- October 2018
- September 2018
- August 2018
- July 2018
- June 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- September 2017
- August 2017
- July 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- February 2014
- January 2014
- December 2013
- October 2013
- August 2013
- June 2013
- December 2012
- September 2012
- July 2012
- June 2012
- November 2011
- May 2011
- April 2011
- February 2011
- December 2010
Categories
- .NET
- 3D
- 3D graphics
- ADO.NET
- algorithms
- animation
- API
- arrays
- attributes
- audio
- books
- C#
- C# programming
- calculations
- challenges
- classes
- clipboard
- coding
- combinatorics
- console
- controls
- cryptography
- curve fitting
- database
- debugging
- dialogs
- directories
- Drag and Drop
- drawing
- drawings
- enums
- Event
- events
- example program
- Excel
- extension methods
- extensions
- files
- finance
- fonts
- formatting
- forms
- fractals
- ftp
- games
- GDI+
- generic
- geometry
- globalization
- graphics
- html
- IDE
- image processing
- inheritance
- interfaces
- internationalization
- internet
- interoperability
- LINQ
- lists
- localization
- mathematics
- memory
- menus
- MessageBox
- methods
- miscellany
- multimedia
- network
- Office
- OOP
- operators
- parsing
- performance
- phone
- PowerPoint
- printers
- printing
- productivity
- programs
- puzzles
- recursion
- reflection
- registry
- regular expressions
- serialization
- settings
- SQL
- stories
- strings
- syntax
- system
- threading
- three-dimensional graphics
- tips
- tools
- transformations
- Uncategorized
- user interface
- variables
- VBA
- web
- Windows Forms programming
- WMI
- Word
- wpf
- XAML
- XML
Meta
Tag Archives: lists
Let the user drag pictures in a picture list in C#
The post Improve the picture list in C# showed how you can let the user add, remove ,and rearrange images in a picture list. To rearrange the list, the user right-clicks on a picture and selects Move Left or Move … Continue reading →
Posted in controls, lists, user interface
|
Tagged C#, C# programming, controls, example, example program, lists, picture list, user interface, Windows Forms programming
|
Leave a comment
Improve the picture list in C#
My post Make a picture list in C# explained how you can make a picture list that lets the user add, remove, and rearrange pictures. This post adds a small improvement. The previous example displayed images in PictureBox controls with … Continue reading →
Posted in controls, lists, user interface
|
Tagged C#, C# programming, controls, example, example program, lists, picture list, user interface, Windows Forms programming
|
1 Comment
Make a picture list in C#
This example shows how to build a picture list that lets the user add, remove, and rearrange pictures at run time. If you right-click between two pictures or to the left or right of all of the pictures, the program … Continue reading →
Posted in controls, lists, user interface
|
Tagged C#, C# programming, controls, example, example program, lists, picture list, user interface, Windows Forms programming
|
1 Comment
Draw text wrapped to fit columns in C#
The post Draw aligned columns of data in C# shows one way to draw text in rows and columns. It uses the Graphics class’s MeasureString method to size the columns so they are big enough to display their data without … Continue reading →
Posted in fonts, graphics, lists
|
Tagged align text, aligned columns, C#, C# programming, column, draw text, example, example program, fonts, graphics, grid, justify text, left justified, lists, right justified, row, Windows Forms programming
|
2 Comments
Make extension methods that pick random items from arrays or lists in C#
This example uses a simple but useful technique to let you pick random items from arrays and lists. The following code defines RandomElement extension methods that pick random items. public static class ArrayExtensions { // The random number generator. private … Continue reading →
Posted in arrays, extension methods, lists
|
Tagged arrays, C#, C# programming, example, example program, extension methods, lists, random, random items, Windows Forms programming
|
1 Comment
Determine whether two lists contain the same sequences of objects in different orders in C#
The SequenceEqual method determines whether two IEnumerable sequences contain the same objects in the same order. There is a simple way to determine whether the lists contain the same objects in different orders: sort the objects and then call SequenceEqual. … Continue reading →
Posted in LINQ, lists, miscellany, OOP
|
Tagged C#, C# programming, equality, equatable, example, example program, IEquatable, LINQ, lists, miscellany, OOP, sequences, unordered sequences, Windows Forms programming
|
Leave a comment
Determine whether two lists contain the same sequences of objects in C#
The IEnumerable interface provides a SequenceEqual method that determines whether two IEnumerable sequences contain the same objects. Normally, it uses reference equality so it considers two objects equal only if they refer to the same instance. However, if the objects … Continue reading →
Posted in lists, miscellany, OOP
|
Tagged C#, C# programming, equality, equatable, example, example program, IEquatable, lists, miscellany, OOP, sequences, Windows Forms programming
|
2 Comments
List Dictionary keys and values in C#
A Dictionary object’s Keys property is a KeyCollection containing the dictionary’s keys. Similarly, its Values property is a ValueCollection containing the dictionary’s values. These collections are slightly different from the List objects that you probably use in your code. In … Continue reading →
Posted in algorithms, controls, lists
|
Tagged algorithms, C#, C# programming, controls, dictionary, example, example program, KeyCollection, ListBox, lists, ToArray, ValueCollection, Windows Forms programming
|
1 Comment
Make an owner-drawn ListBox that justifies columns in C#
This example shows how you can use an owner-drawn ListBox to left and right align values in columns. The following examples show different ways to align values in columns. Draw aligned columns of data in C# Format values in a … Continue reading →
Posted in controls, fonts, graphics, lists, user interface
|
Tagged align text, C#, C# programming, column, controls, example, example program, fonts, graphics, grid, justify text, left justified, ListBox, lists, owner-drawn ListBox, right justified, row, user interface, Windows Forms programming
|
Leave a comment
Draw aligned columns of data in C#
This example draws a series of rows with aligned columns either left or right justified. The program uses the following code to define the data it will draw and the row and column alignments. // The values. private string[][] Values … Continue reading →
Posted in fonts, graphics, lists
|
Tagged align text, aligned columns, C#, C# programming, column, example, example program, fonts, graphics, grid, justify text, left justified, lists, right justified, row, Windows Forms programming
|
6 Comments