Author Archives: RodStephens

About RodStephens

Rod Stephens is a software consultant and author who has written more than 30 books and 250 magazine articles covering C#, Visual Basic, Visual Basic for Applications, Delphi, and Java.

Combine images in rows and columns in C#

I just finished my latest book WPF 3d, Three-Dimensional Graphics with WPF and C# and I wanted to combine images showing samples from the book into a single image. You can use a program such as MS Paint to do … Continue reading

Posted in algorithms, drawing, graphics, image processing | Tagged , , , , , , , , , | Leave a comment

Book Sample Pictures: WPF 3d

This page shows thumbnail images for my book WPF 3D, Three-Dimensional Graphics with WPF and C#. Click on a picture to see a full-sized version. [ Overview – Table of Contents – Questions and Discussion – Errata – Sample Pictures … Continue reading

Posted in 3D, 3D graphics, algorithms, books, drawing, graphics, mathematics, wpf, XAML | Tagged , , , , , , , , , , , , , , | 3 Comments

Book Errata Page: WPF 3d

This is the errata page for my book WPF 3D, Three-Dimensional Graphics with WPF and C#. If you find mistakes, please post them here in the “Leave a Reply” box at the bottom of the page. I will moderate them … Continue reading

Posted in 3D, 3D graphics, algorithms, books, drawing, graphics, mathematics, wpf, XAML | Tagged , , , , , , , , , , , , , , | 3 Comments

Book Discussion Page: WPF 3d

This is a discussion page for my book WPF 3D, Three-Dimensional Graphics with WPF and C#. Please post questions, thoughts, and suggestions here in the “Leave a Reply” box at the bottom of the page. I will moderate posts and … Continue reading

Posted in 3D, 3D graphics, algorithms, books, drawing, graphics, mathematics, Uncategorized, wpf, XAML | Tagged , , , , , , , , , , , , , , | 3 Comments

WPF 3d: Table of Contents

This is a brief summary of the table of contents for my book WPF 3D, Three-Dimensional Graphics with WPF and C#. Contents Introduction Part I. Getting Started Chapter 1. XAML Example Chapter 2. C# Example Chapter 3. Coordinates Chapter 4. … Continue reading

Posted in 3D, 3D graphics, algorithms, books, drawing, graphics, mathematics, wpf, XAML | Tagged , , , , , , , , , , , , , , | 3 Comments

Graph a square curve in C#

This example shows how to graph a curve that draws a square. The basic idea isn’t as bizarre as you might think. You probably know that x2 + y2 = 1 is the equation for a circle. So what is … Continue reading

Posted in algorithms, drawing, mathematics | Tagged , , , , , , , , , , , | 4 Comments

Extract comments from a group of files in C#

I’m finishing up another book (I’ll announce it when it’s ready in a week or so) and I’m working through one of the thornier issues of any programming book: spell-checking code comments. I already have an example to extract comments … Continue reading

Posted in files, strings, syntax | Tagged , , , , , , , , , , , , | Leave a comment

Justify paragraphs in C#

This example adds the ability to justify paragraphs to the example The example Align text by lines in C#. This is a bit more complicated than aligning text on the left, right, or center. (I don’t know why Microsoft didn’t … Continue reading

Posted in fonts, graphics, printing, strings | Tagged , , , , , , , , , , , , , , | Leave a comment

Calculate credit payments in WPF and C#

This is a WPF version of the example Calculate credit payments in C#. The calculations are the same. Unfortunately building and using the user interface is much harder in WPF, particularly working with the ListView control. (The unofficial WPF slogan: … Continue reading

Posted in algorithms, calculations, finance, mathematics | Tagged , , , , , , , , , , , , , | Leave a comment

Write a TreeView into a tab-delimited file in C#

The example Load a TreeView from a tab-delimited file in C# shows how to load a TreeView control from a file. This example shows how to do the converse: write a TreeView control’s values into a file. The following SaveTreeViewIntoFile … Continue reading

Posted in algorithms, controls, files, recursion | Tagged , , , , , , , , , , , | Leave a comment