The Reddest

The Reddest
- Name: Brandon Cannaday
- Favorite Languages: C#, Javascript, C++
- Website: http://www.paranoidferret.com
- Location: Lafayette, IN
- About Me:
Even though I'm a programmer, I enjoy spending a lot of time outdoors - hiking, camping, etc. I spend most of my programming time in high level languages and user interface design. Most of my tutorials on this blog are about WPF, C#, or Javascript.
Published Tutorials (100)
-
.NET 3.5 Adds Named Pipes Support
-
An Absolute Beginner's Guide to iPhone Development
-
An Extensive Guide to Photoshop Layer Styles
-
Blender Tutorial - Basic UV Mapping
-
Building a Silverlight Deep Zoom Application
-
Building a Twitter Extension for Google Chrome
-
C# Snippet Tutorial - Comparing IP Addresses
-
C# Snippet Tutorial - Custom Event Handlers
-
C# Snippet Tutorial - Custom List Sorting
-
C# Snippet Tutorial - Determining if Aero is Enabled
-
C# Snippet Tutorial - Editing the Windows Registry
-
C# Snippet Tutorial - How to Draw Text on an Image
-
C# Snippet Tutorial - How to Get an Enum from a Number
-
C# Snippet Tutorial - How to get an Enum from a String
-
C# Snippet Tutorial - Modify a Cell's Selected Text
-
C# Snippet Tutorial - The ?? Operator
-
C# Snippet Tutorial - The checked and unchecked keywords
-
C# Snippet Tutorial - Using the FileSystemWatcher Class
-
C# Tutorial - Binding a DataGridView to a Collection
-
C# Tutorial - Binding a DataGridView to a Database
-
C# Tutorial - Convert a Color Image to Grayscale
-
C# Tutorial - Serialize Objects to a File
-
C# Tutorial - Simple Threaded TCP Server
-
C# Tutorial - Using Reflection to Get Object Information
-
C# Tutorial - Using the BackgroundWorker Class
-
C# Tutorial - Writing a .NET Wrapper for SQLite
-
C# Tutorial - XML Serialization
-
C++ Tutorial - Sorting STL Containers
-
Combining Images with C#
-
Communicate Between Flex and Silverlight using Javascript
-
Create a Basic iPhone Audio Player with AV Foundation Framework
-
Creating a REST Client using WCF
-
Creating a Simple Windows Service in C#
-
Creating an XP Style WPF Button with Silverlight
-
Creating and Reading Global Attributes in C#
-
Creating Buttons with XAML and C#
-
Creating Custom Shapes with XAML
-
Creating XML Documents in PHP
-
Escaping Curly Braces in XAML
-
Flex Tutorial - Change the List Selection Indicator
-
Get Access to Hundreds of Office Icons
-
Getting Started With Silverlight
-
How Google Chrome Stores Passwords
-
How to Build a Simple Twitter Client using Python
-
How to Build a Star Ratings jQuery Plugin
-
How To Configure And Use Visual Studio Macros
-
How To Embed Silverlight Into a Webpage
-
How to Use Custom User Controls in Silverlight
-
HTML and Javascript - Putting it all Together
-
Implementing C# Interfaces in C++
-
Installing and Running Google Go on Mac OS X
-
Interprocess Communication using Named Pipes in C#
-
Introduction to LINQ - Simple XML Parsing
-
iPhone Tutorial - Creating Basic Buttons
-
iPhone Tutorial - How to Create a Blue Navigation Button
-
iPhone Tutorial - Reading the Accelerometer
-
iPhone Tutorial - Searching the Web with the Bing SDK
-
Javascript and CSS Tutorial - How to make Sliding Panels
-
Javascript Sliding Panels - Starting the Panels Up
-
Javascript Sliding Panels using Generic Animation
-
Javascript Snippet Tutorial - Dynamically Modifying Tables
-
Javascript Tutorial - Getting User Input with Prompt and Confirm
-
Javascript Tutorial - How to Auto Ellipse Text
-
Javascript Tutorial - Inline Sliding Panels
-
JQuery Tutorial - Dynamic Sliding Panels
-
JQuery Tutorial - Getting Browser Information
-
Photoshop Tutorial - Actions
-
Photoshop Tutorial - Create a Seamless Texture from a Photo
-
Photoshop Tutorial - How to Make a Color Picker Gradient
-
PHP Tutorial - Creating and Modifying SQLite Databases
-
Python Tutorial - Batch Image Resizing
-
Silverlight 3 Tutorial - PlaneProjection and Perspective 3D
-
Silverlight and Javascript Interaction
-
Silverlight and the Netflix API
-
Silverlight DataGrid - The Basics
-
Silverlight DataGrid Tutorial - Using a DataGridTemplateColumn
-
Silverlight Tutorial - Animating Elements using Render Transforms
-
Silverlight Tutorial - Color Animations
-
Spice Up Wordpress with Resizable Comment Boxes
-
Taking a Dive into HTML5 - Web Storage
-
The Flex Drop Shadow
-
The WPF Tab Control - Inside and Out
-
Using C# to Download Every O'Reilly Book Cover
-
Using Shark to Performance Tune Your iPhone App
-
Visualizing O'Reilly with Silverlight Deep Zoom
-
WCF Callbacks Hanging WPF Applications
-
WCF Snippet Tutorial - Overloading Methods
-
WCF Tip: Using Properties in Service Contracts
-
WCF Tutorial - Basic Interprocess Communication
-
WCF Tutorial - Events and Callbacks
-
WCF Tutorial - Serializing and Transmitting Base Types
-
White Balance Your Images with Photoshop
-
Working With The WPF Dispatcher
-
WPF 4 Lowers Default BitmapScalingMode Quality
-
WPF Snippet Tutorial - Aligning ListView Items
-
WPF Tutorial - Binding Converters
-
WPF Tutorial - Custom Control Templates
-
XAML Tutorial - Changing Text Color on Mouse Over
-
XML Parsing with jQuery
-
Zune Game Development - Getting Started
-
Create a Basic iPhone Audio Player with AV Foundation Framework
08/27/2010 - 08:51
I haven't had a chance yet to use the Audio Queue Services, so I haven't made a tutorial. Here's Apple's developer docs on Audio Queue Services that should get you started.
-
Image processing
08/18/2010 - 10:00
Where does it say the parameter is invalid. Does the debugger point to a line of code?
-
how to draw a square dot on mouse click on image picturebox c#
08/18/2010 - 09:12
Here's a solution. I subclassed PictureBox so I could override OnPaint. I tested this and it works pretty well.
public class PictureBoxEx : PictureBox
{
List<Point> _points;
public PictureBoxEx()
{
_points = new List<Point>();
MouseDown += PictureBoxEx_MouseDown;
}
void PictureBoxEx_MouseDown(object sender, MouseEventArgs e)
{
_points.Add(new Point(e.X, e.Y));
// Invalidate the control to cause it to repaint itself.
this.Invalidate();
}
protected override void OnPaint(PaintEventArgs pe)
{
base.OnPaint(pe);
foreach (var p in _points)
{
// Subtract 5 from the coords to center
// the ellipse on the cursor.
pe.Graphics.DrawEllipse(Pens.Green,
new Rectangle(p.X - 5, p.Y - 5, 10, 10));
}
}
}Simple add this control to your Form like you would any other PictureBox.
-
how to draw a square dot on mouse click on image picturebox c#
08/17/2010 - 09:42
What doesn't work in your code?
-
C# Tutorial - Simple Threaded TCP Server
08/17/2010 - 08:43
I noticed a potential problem in your code. You allocate buffer to the size of 8192, then immediate set the reference equal to the output of encoder.GetBytes. Next, while reading from the client, your attempting to read 8192 bytes into a buffer that's now much smaller.
-
WPF Tutorial - Using The ListView, Part 1
08/11/2010 - 17:03
By default the ToString method will be called on objects to generate what's displayed in the ListView. What you'll need to do is create a binding converter to convert the DateTime to the string you'd like displayed.
DateTime has dozens of default string generators as well as accepting parameters to its overridden ToString to create pretty much any format you can imagine.
-
WPF Tutorial - Binding Converters
08/11/2010 - 08:36
You're definitely right about that. I'm not sure how we missed that one. Nice find!
-
Creating a Simple Windows Service in C#
07/28/2010 - 10:35
That would probably work.
-
Silverlight Tutorial - Animating Elements using Render Transforms
07/28/2010 - 08:30
The source is supposed to be attached to the article, but it's not. I'll have to hunt it down and get it attached.
-
Building a Silverlight Deep Zoom Application
07/19/2010 - 20:25
Since Silverlight is entirely client-side, all you have to do is find the output HTML file and open it directly in a web browser (file://...). Most of the time this is a very quick way to test the app - it's just that Silverlight's security prevents some things from working when the page is loaded from the hard drive like this.
Other than that, I can't think of any reasons why the images wouldn't be loading. Double-check that the path you've specified is correct and the images are there.
Recent Comments