Sign In
jfo's coding
adventures in windows forms and wpf
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
About
Best and worst of JFo's Coding
Cider
Pages
Silverlight
Software Engineering
Windows Forms
WPF
Archive
Archives
March 2011
(1)
November 2009
(1)
October 2009
(5)
September 2009
(15)
December 2006
(7)
November 2006
(2)
October 2006
(3)
September 2006
(15)
August 2006
(4)
July 2006
(7)
June 2006
(4)
May 2006
(7)
April 2006
(7)
March 2006
(9)
February 2006
(10)
January 2006
(13)
December 2005
(7)
November 2005
(15)
October 2005
(14)
September 2005
(17)
August 2005
(14)
July 2005
(4)
June 2005
(1)
May 2005
(3)
April 2005
(2)
March 2005
(4)
February 2005
(3)
January 2005
(3)
December 2004
(9)
November 2004
(2)
December, 2004
MSDN Blogs
>
jfo's coding
>
December, 2004
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
jfo's coding
History of bools and p/invoke
Posted
over 8 years ago
by
jfoscoding
0
Comments
Raymond has an interesting post on the history of boolean across different APIs. Because each different kind of boolean has a different size/interpretation for true/false, when writing a p/invoke definition it's important to use the MarshalAs attribute...
jfo's coding
Creating a custom control in winforms - Part 6: Testing!
Posted
over 8 years ago
by
jfoscoding
2
Comments
Continuing on from last time ... Now that we've got Painting, Mouse handling up to speed, it's time to build a test application. After adding a Square to your control, add these few lines in OnLoad (or after initialize component) PropertyGrid pg = new...
jfo's coding
Creating a custom control in Winforms - Part 5 Default Values for interesting datatypes
Posted
over 8 years ago
by
jfoscoding
5
Comments
Specifying interesting datatypes in the DefaultValue attribute Ok so last time we got off easy with a boolean property – what about something more complex – for example a Color? How can that be specified? The DefaultValueAttribute has another overload...
jfo's coding
Creating Custom Controls in Winforms - Part 4 - Adding a property: DefaultValue attribute explained
Posted
over 8 years ago
by
jfoscoding
4
Comments
Debunking a common misconception There is a lot of confusion around the DefaultValue attribute - it feels like it really should setup the initial value of the property. Unfortunately, this is not the case. It’s used to determine whether the property should...
jfo's coding
Andrew has joined the blogging world
Posted
over 8 years ago
by
jfoscoding
0
Comments
Andrew - yet another windows forms groupie - has just joined the world of the blogging. Can't wait to see what he's got to say.
jfo's coding
Creating Custom Controls in Winforms - Part 3 Painting OnMouseOver
Posted
over 8 years ago
by
jfoscoding
3
Comments
Continuing on building our custom control ... Handling Mouse Movement Lets add some pizzazz to the square – it seems too stale. When we enter the square, let’s draw a dark rectangle around the outside, and when we leave let’s erase that border. In order...
jfo's coding
Creating a Custom Control in Winforms - Part 2 Adding Paint
Posted
over 8 years ago
by
jfoscoding
4
Comments
Continuing on from last time .... A grey square on a grey form is not very interesting…. Lets add some paint. I’ve talked a bit about painting before in Painting Best Practices , but we’re going to do it for real this time. We’re going to paint red, yellow...
jfo's coding
Creating a Custom Control in Winforms - Part 1
Posted
over 8 years ago
by
jfoscoding
3
Comments
Creating the Square control Creating a custom control in windows forms is very simple – there are a few gotchas along the way – so I thought I’d make a sample control called “Square” to walk through it. The square will obviously have sizing restrictions...
jfo's coding
Picking your base class wisely
Posted
over 8 years ago
by
jfoscoding
3
Comments
One of the harder things to decide when you're starting out building a custom control is what to derive from. There are a couple different layers to the control hierarchy, and it's not always clear what to derive from. Base class What it adds When to...
Page 1 of 1 (9 items)