Monthly Archives: August 2013

Book Review: Python for Kids: A Playful Introduction to Programming

A great book, but is it the one for you? Python for Kids: A Playful Introduction to Programming By Jason R. Briggs 344 pages No Starch Press (December 19, 2012) ISBN-13: 978-1593274078 This book is exactly what it says it … Continue reading

Posted in Uncategorized | Leave a comment

Use reflection to list a class’s methods in C#

This example uses the following code to add some simple methods to the Form1 class. // Add some methods. private void MyPrivateMethod(string arg0, string arg2) { } public void MyPublicMethod(float float0, double double0) { } private void MyOverloadedMethod() { } … Continue reading

Posted in reflection | Leave a comment

Use reflection to list the fields provided by the SystemInformation class in C#

The example Use reflection to list a class’s fields in C# shows how to list the fields defined by a class. This example uses the techniques described in that example to list the few fields defined by the SystemInformation class. … Continue reading

Posted in reflection | Leave a comment

Use reflection to list a class’s fields in C#

Even though fields and properties are very similar when you interact with an item in code, to C# they are different. One side effect of that is that the GetProperties method provided by reflection lists only properties, not fields. Fortunately … Continue reading

Posted in reflection | Leave a comment

Use reflection to list the properties provided by the SystemInformation class in C#

The SystemInformation class is chock full of useful properties that give information about system parameters. These include such values as the thickness of a text caret, the size of menu buttons, the default font, and the name of the computer. … Continue reading

Posted in reflection | 2 Comments

Use reflection to list a class’s properties in C#

This post begins a short series on using reflection. The tools that make C# work (such as the .NET Framework and the compiler that turns C# into IL code) use techniques that require them to learn a lot about the … Continue reading

Posted in reflection | Leave a comment

Copy files to the clipboard in C#

The example Paste files from the clipboard in C# shows how a program can paste files from the clipboard. You can copy the files to the clipboard by selecting them in Windows Explorer and pressing Ctrl+C. This example shows how … Continue reading

Posted in clipboard, interoperability | Leave a comment

Paste files from the clipboard in C#

Copying and pasting text is relatively straightforward. See Copy and paste text to and from the clipboard C#.) When you copy files, the data copied is actually an array of strings holding the names of the files. This example shows … Continue reading

Posted in clipboard, interoperability | Leave a comment

Display a horizontal scrollbar in a ListBox in C#

This is an easy but useful tip. If you need to display some long values in a ListBox, you may want to be able to scroll to the right to see the ends of the values. For example, this program … Continue reading

Posted in controls | Leave a comment

How to use the examples at C# Helper

Occasionally people are confused about how to use the examples posted on the C# Helper web site so here a few important tips. First, read over the text and the code shown on the web page. If you only need … Continue reading

Posted in miscellany | Leave a comment