Click here to Skip to main content
12,943,299 members (80,360 online)
Click here to Skip to main content
Articles » Languages » C# » Windows Forms » Downloads


87 bookmarked
Posted 29 Jan 2004

Unleash PropertyGrid with Dynamic Properties and Globalization

, 29 Jan 2004 CPOL
The article presents a way to enhance the use of the PropertyGid control with dynamic properties and globalization
using System;
using System.Windows.Forms;
using System.Drawing;
using CustomControls.Enumerations;

namespace CustomControls.HelperClasses
	public class EditControl:TextBox
		public new  BorderStyle BorderStyle
			get{return BorderStyle.FixedSingle;}

		public EditControl()

		protected override  void WndProc(ref Message m)
			base.WndProc(ref m);		

		private void PaintBorder()
			using (Graphics g=this.CreateGraphics())
				Color borderColor =this.BackColor;
				using (Pen pen= new Pen(borderColor))
					g.DrawRectangle(pen,new Rectangle(0,0,this.Width-1, this.Height-1));


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Daniel Zaharia
Web Developer
Romania Romania
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170518.1 | Last Updated 30 Jan 2004
Article Copyright 2004 by Daniel Zaharia
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid