Click here to Skip to main content
15,895,606 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Quit Console Application Pin
N a v a n e e t h30-Jul-07 0:38
N a v a n e e t h30-Jul-07 0:38 
GeneralRe: How to Quit Console Application Pin
Harkamal Singh30-Jul-07 20:30
Harkamal Singh30-Jul-07 20:30 
AnswerRe: How to Quit Console Application Pin
leppie30-Jul-07 0:38
leppie30-Jul-07 0:38 
AnswerRe: How to Quit Console Application Pin
Vasudevan Deepak Kumar30-Jul-07 0:58
Vasudevan Deepak Kumar30-Jul-07 0:58 
QuestionSetting CollectionClass to Property - Custom Controls Pin
N a v a n e e t h30-Jul-07 0:09
N a v a n e e t h30-Jul-07 0:09 
AnswerRe: Setting CollectionClass to Property - Custom Controls Pin
leppie30-Jul-07 0:39
leppie30-Jul-07 0:39 
GeneralRe: Setting CollectionClass to Property - Custom Controls Pin
N a v a n e e t h30-Jul-07 1:06
N a v a n e e t h30-Jul-07 1:06 
AnswerRe: Setting CollectionClass to Property - Custom Controls [modified] Pin
Martin#30-Jul-07 2:05
Martin#30-Jul-07 2:05 
Hello,

N a v a n e e t h wrote:
I succeeded in creating collectionclass

I guess like that:
public class YourItemsCollection : CollectionBase, IDisposable
{
 //...
}


For this class you have to write an converter, which inherits from "System.ComponentModel.ExpandableObjectConverter".
public class YourItemsCollectionConverter: ExpandableObjectConverter
{
 //...
}

In this class you have to override following methods:
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)

public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] filter)


The "YourItemsCollectionConverter" has to be set as an Attribute to "YourItemsCollection":
[TypeConverter(typeof(YourItemsCollectionConverter))]


This article[^] shows it very good!


-- modified at 8:18 Monday 30th July, 2007


-- modified at 8:34 Monday 30th July, 2007

All the best,

Martin

GeneralRe: Setting CollectionClass to Property - Custom Controls Pin
N a v a n e e t h30-Jul-07 2:21
N a v a n e e t h30-Jul-07 2:21 
GeneralRe: Setting CollectionClass to Property - Custom Controls Pin
Martin#30-Jul-07 2:27
Martin#30-Jul-07 2:27 
QuestionPlugin Frmaework in VS 2005 .NET Pin
dotman130-Jul-07 0:06
dotman130-Jul-07 0:06 
AnswerRe: Plugin Frmaework in VS 2005 .NET Pin
Joseph Guadagno30-Jul-07 4:23
Joseph Guadagno30-Jul-07 4:23 
GeneralRe: Plugin Frmaework in VS 2005 .NET Pin
dotman130-Jul-07 23:14
dotman130-Jul-07 23:14 
Questionslow speed Pin
Xmen Real 29-Jul-07 23:01
professional Xmen Real 29-Jul-07 23:01 
AnswerRe: slow speed Pin
Luc Pattyn29-Jul-07 23:23
sitebuilderLuc Pattyn29-Jul-07 23:23 
GeneralRe: slow speed Pin
Xmen Real 30-Jul-07 2:31
professional Xmen Real 30-Jul-07 2:31 
GeneralRe: slow speed Pin
Luc Pattyn30-Jul-07 2:46
sitebuilderLuc Pattyn30-Jul-07 2:46 
GeneralRe: slow speed [modified] Pin
Xmen Real 30-Jul-07 3:00
professional Xmen Real 30-Jul-07 3:00 
AnswerRe: slow speed Pin
girm29-Jul-07 23:37
girm29-Jul-07 23:37 
GeneralRe: slow speed Pin
Xmen Real 30-Jul-07 2:33
professional Xmen Real 30-Jul-07 2:33 
GeneralRe: slow speed Pin
girm30-Jul-07 21:51
girm30-Jul-07 21:51 
GeneralRe: slow speed Pin
Xmen Real 31-Jul-07 19:08
professional Xmen Real 31-Jul-07 19:08 
QuestionC# Project corrupted? Pin
Vikas K.29-Jul-07 21:21
Vikas K.29-Jul-07 21:21 
AnswerRe: C# Project corrupted? Pin
T.EDY29-Jul-07 21:53
T.EDY29-Jul-07 21:53 
GeneralRe: C# Project corrupted? Pin
Vikas K.29-Jul-07 23:29
Vikas K.29-Jul-07 23:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.