Hi Guy,
I think you can create your own control that inherts the textbox.(You also
can create a usercontrol that similar to the textbox)
Then, you can create a property to expose the textbox's back color property.
The VS.NET IDE will put the property you create in both property window
and Dynamic property window.
Then you can add back color property to app.config file through IDE.
Hope this helps.
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Guy Harwood" <gu*@hcs-ltd.co.uk>
| Sender: "Guy Harwood" <gu*@hcs-ltd.co.uk>
| Subject: Dynamic Properties in user control
| Date: Thu, 14 Aug 2003 08:28:01 -0700
| Lines: 22
| Message-ID: <11****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNieKXIo2HVrltRTTu5C0ni54LFSw==
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:176456
| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Hi,
|
| I have designed a textbox that inherits from the
| System.Windows.Forms.Textbox control.
|
| when the control is readonly the back color changes to a
| light blue to indicate that it is frozen.
|
| This all works well, but i would like the color to be
| configurable via the app.config file.
|
| i know how to do this but would like to add the jazz of
| using the properties window (like what the SqlConnection
| component does), in that you can open the dynamic
| properties window and tell the control via ticking the box
| to store the connection string in the application
| configuration file and it lets you specify a key name for
| it.
|
| how do i implement this functionality into my control???
|
| Thanks in advance
|