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

C#

 
QuestionHow can I calling this c++ function in c#? Pin
Fu Chen23-Oct-05 16:29
Fu Chen23-Oct-05 16:29 
AnswerRe: How can I calling this c++ function in c#? Pin
Christian Graus23-Oct-05 16:32
protectorChristian Graus23-Oct-05 16:32 
GeneralRe: How can I calling this c++ function in c#? Pin
Fu Chen23-Oct-05 16:45
Fu Chen23-Oct-05 16:45 
GeneralRe: How can I calling this c++ function in c#? Pin
Christian Graus23-Oct-05 16:47
protectorChristian Graus23-Oct-05 16:47 
QuestionC# web design Pin
momoo23-Oct-05 16:04
momoo23-Oct-05 16:04 
AnswerRe: C# web design Pin
Christian Graus23-Oct-05 16:34
protectorChristian Graus23-Oct-05 16:34 
QuestionHow to use the gateway? Pin
rushing23-Oct-05 15:38
rushing23-Oct-05 15:38 
QuestionPropertyGrid Issue Pin
gantww23-Oct-05 11:22
gantww23-Oct-05 11:22 
I'm having a relatively complex problem with the PropertyGrid. Here it is:
I've got a complex class heirarchy. Each object in the heirarchy is easily referenced/retrieved by Guid (they all implement a common interface that has the Guid as a property). I've created a custom PropertyConverter to get the list of possible values that the object should allow (it pulls this from the object heirarchy). I've also created a custom property descriptor object that will return my custom property converter if the property's values are pulled from the object heirarchy. The object in question that I'm using to test also implements ICustomTypeDescriptor. The only method not passed off to the static TypeDescriptor object is the GetProperties() method. Instead of using the standard property descriptor, I'm using my custom property descriptor.

Now, here's the deal. I can get a string description of the appropriate objects to appear in the drop down list in the property grid. However, when I select a value, I get an error indicating that it couldn't convert from the data type in the property grid to the type of object I want. What I would like to do is retrieve the Guid of the object I selected. Do I just need to implement the CanConvertFrom, CanConvertTo, ConvertFrom, and ConvertTo methods in my PropertyConverter? Obviously, the selected value will need to be converted back to be used in the PropertyGrid as well.

Is this the right approach?

Thanks,
Will
QuestionDifference between .NET 1.1 and .NET 2.0 Pin
Ami Bar23-Oct-05 10:29
Ami Bar23-Oct-05 10:29 
AnswerRe: Difference between .NET 1.1 and .NET 2.0 Pin
MoustafaS23-Oct-05 16:14
MoustafaS23-Oct-05 16:14 
GeneralRe: Difference between .NET 1.1 and .NET 2.0 Pin
Christian Graus23-Oct-05 16:35
protectorChristian Graus23-Oct-05 16:35 
GeneralRe: Difference between .NET 1.1 and .NET 2.0 Pin
MoustafaS23-Oct-05 16:37
MoustafaS23-Oct-05 16:37 
AnswerRe: Difference between .NET 1.1 and .NET 2.0 Pin
Christian Graus23-Oct-05 16:43
protectorChristian Graus23-Oct-05 16:43 
GeneralRe: Difference between .NET 1.1 and .NET 2.0 Pin
Ami Bar23-Oct-05 17:16
Ami Bar23-Oct-05 17:16 
GeneralRe: Difference between .NET 1.1 and .NET 2.0 Pin
Christian Graus23-Oct-05 17:20
protectorChristian Graus23-Oct-05 17:20 
GeneralRe: Difference between .NET 1.1 and .NET 2.0 Pin
S. Senthil Kumar23-Oct-05 20:49
S. Senthil Kumar23-Oct-05 20:49 
AnswerRe: Difference between .NET 1.1 and .NET 2.0 Pin
leppie23-Oct-05 20:26
leppie23-Oct-05 20:26 
QuestionReverse engeneering Pin
Liunardu23-Oct-05 8:57
Liunardu23-Oct-05 8:57 
QuestionProgressBar Pin
allenmpcx23-Oct-05 7:13
allenmpcx23-Oct-05 7:13 
AnswerRe: ProgressBar Pin
Anonymous23-Oct-05 7:50
Anonymous23-Oct-05 7:50 
GeneralRe: ProgressBar Pin
Matt Gerrans23-Oct-05 8:50
Matt Gerrans23-Oct-05 8:50 
QuestionWorking with bits in C# Pin
Bart7Simpson723-Oct-05 6:33
Bart7Simpson723-Oct-05 6:33 
AnswerRe: Working with bits in C# Pin
leppie23-Oct-05 9:46
leppie23-Oct-05 9:46 
QuestionID3 Pin
Arch4ngel23-Oct-05 6:18
Arch4ngel23-Oct-05 6:18 
AnswerRe: ID3 Pin
Matt Gerrans23-Oct-05 8:58
Matt Gerrans23-Oct-05 8:58 

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.