PC Review


Reply
Thread Tools Rate Thread

Adding a usercontrol's property in the property window

 
 
Zyrthofar Blackcloak
Guest
Posts: n/a
 
      28th Aug 2004
Hi

I have created a control with 3 properties (TextDiff, DarkColorDiff
and LightColorDiff). When I use that control in a program, I would
like those properties to show up in the property window with all the
other properties for that control.

How could I do that? I had hoped that declaring them as properties
would work, but that doesn't seem to be the case...

thanks
 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      28th Aug 2004
* Zyrthofar Blackcloak <(E-Mail Removed)> scripsit:
> I have created a control with 3 properties (TextDiff, DarkColorDiff
> and LightColorDiff). When I use that control in a program, I would
> like those properties to show up in the property window with all the
> other properties for that control.


\\\
Imports System.ComponentModel
..
..
..
<Browsable()> _
Public Property...
...
End Property
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
 
Reply With Quote
 
Zyrthofar Blackcloak
Guest
Posts: n/a
 
      29th Aug 2004
Greatly helped with my problem. Thank you very much!


On 28 Aug 2004 18:14:41 +0200, hirf-spam-me-(E-Mail Removed) (Herfried K.
Wagner [MVP]) wrote:

>* Zyrthofar Blackcloak <(E-Mail Removed)> scripsit:
>> I have created a control with 3 properties (TextDiff, DarkColorDiff
>> and LightColorDiff). When I use that control in a program, I would
>> like those properties to show up in the property window with all the
>> other properties for that control.

>
>\\\
>Imports System.ComponentModel
>.
>.
>.
><Browsable()> _
>Public Property...
> ...
>End Property
>///


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UserControl with a Decimal Property with a DefaultValue is not handled correctly by Property Editor Shadow Lynx Microsoft VB .NET 0 12th Apr 2006 02:18 AM
Usercontrol property appears in property grid but not intellisense Bruce Wood Microsoft Dot NET Framework Forms 2 21st Nov 2005 05:18 PM
UserControl Enum Property Bold in WinForms Property window Kakaiya Microsoft Dot NET 0 15th Apr 2005 03:37 AM
Adding code property to control property window NuBBeR Microsoft C# .NET 1 7th Oct 2004 05:15 PM
Adding an About Property in UserControl =?Utf-8?B?Q2hyaXN0b3NY?= Microsoft Dot NET Framework 4 28th Mar 2004 04:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:55 AM.