-
Recent Posts
-
Recent Comments
Archives
- 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
Monthly Archives: May 2016
Find a matrix inverse in C#
This example finds a matrix inverse for a square matrix. The inverse of a matrix is another matrix that, when multiplied by the first, gives the identity matrix as a result. In the identity matrix, all entries are 0 except … Continue reading
Use the Conditional attribute to make a method non-callable in C#
The Conditional attribute makes a method callable depending on whether a compile-time constant is defined. If the constant is not defined, then the compiler ignores calls to that method. The following code makes the Test subroutine callable if either the … Continue reading
Posted in attributes, debugging
Tagged attributes, C#, C# programming, conditional, conditional attribute, debugging, example, example program, Windows Forms programming
Leave a comment
Draw smoother cones using WPF and C#
The example Draw smooth cones using WPF and C# shows how to draw some fairly smooth cones in WPF and C#. This example shows how to make even smoother cones. In the picture on the right, the cone on the … Continue reading
Posted in algorithms, drawing, graphics, mathematics, wpf, XAML
Tagged 3D, 3D graphics, algorithms, C#, C# programming, cones, draw cones, draw smooth cones, draw smoother cones, drawing, example, example program, geometry, graphics, mathematics, smooth cones, smoother cones, three-dmensional graphics, Windows Forms programming, WPF, XAML
Leave a comment
Draw smooth cones using WPF and C#
The example Draw cones using WPF and C# shows how to draw cones in WPF and C#. This example shows how to draw smooth cones. Or at least smoother cones. To make smooth cones, the program simply ensures that adjacent … Continue reading
Posted in algorithms, drawing, geometry, graphics, mathematics, wpf, XAML
Tagged 3D, 3D graphics, algorithms, C#, C# programming, cones, draw cones, draw smooth cones, drawing, example, example program, geometry, graphics, mathematics, smooth cones, three-dmensional graphics, Windows Forms programming, WPF, XAML
1 Comment
Draw cones using WPF and C#
This example shows how to draw cones in WPF and C#. The program uses a method very similar to the one used by the example Draw cylinders using WPF and C#. The picture on the right shows the approach used … Continue reading
Posted in algorithms, drawing, geometry, graphics, mathematics, wpf, XAML
Tagged 3D, 3D graphics, 3D line segment, algorithms, arrows, axes, axis, boxes, C#, C# programming, cones, cross product, cube, cubes, draw arrows, draw cones, drawing, example, example program, geometry, graphics, line segment, mathematics, segment, three-dmensional graphics, tic mark, vector, Windows Forms programming, WPF, XAML
1 Comment
Make a temperature forecast in C#
The example Get weather forecast data in C# explains how to read weather forecast data from OpenWeatherMap. This example uses that data to list the forecast’s temperatures. The forecast data has (in part) the following structure. <weatherdata> … <forecast> <time … Continue reading
Get weather forecast data in C#
There are many sites that offer weather condition and weather forecast services. All of the ones I found required you to have a developer key, although most of them have a free membership that works for a simple program like … Continue reading
Posted in internet, interoperability, web, XML
Tagged C#, C# programming, example, example program, internet, interoperability, weather conditions, weather forecast, web, Windows Forms programming, XML
2 Comments
Graph historical stock prices in C#
The key to this example is the GetStockPrices method shown in the following code. // Get the prices for this symbol. private List GetStockPrices(string symbol) { // Compose the URL. string url = “http://www.google.com/finance/” + “historical?output=csv&q=” + symbol; // Get … Continue reading
Posted in finance, graphics, mathematics
Tagged C#, C# programming, example, example program, finance, graph, graph stock prrices, graphics, graphing, mathematics, stock market, stock prices, Windows Forms programming, Yahoo, Yahoo finance
Leave a comment
Give an application beautiful icons in C#
This is a pretty long tutorial on how to build and use icons in an application. Contents Icon Sizes Creating an Icon File Using the Integrated Icon Editor Using External Icon Editors Inkscape @icon sushi Using an Icon File Clearing … Continue reading
Posted in forms, graphics, system
Tagged C#, C# programming, example, example program, forms, graphics, system, Windows Forms programming
1 Comment
Provide multiple inheritance in C#
Sometimes you might want a class to inherit from more than one parent class. For example, you might define a Vehicle class that has vehicle properties such as MaxSpeed, and a Domicile class with house-like properties such as SquareFeet. You … Continue reading
Posted in inheritance, interfaces, OOP
Tagged C#, C# programming, example, example program, inheritance, interface inheritance, interfaces, multiple inheritance, OOP, Windows Forms programming
1 Comment