Click here to Skip to main content
15,911,132 members
Home / Discussions / C#
   

C#

 
AnswerRe: 2 Equations 2 Unknows - How to program in C#? Pin
laura131627-Mar-07 16:06
laura131627-Mar-07 16:06 
GeneralRe: 2 Equations 2 Unknows - How to program in C#? Pin
Leslie Sanford27-Mar-07 16:24
Leslie Sanford27-Mar-07 16:24 
AnswerRe: 2 Equations 2 Unknows - How to program in C#? Pin
darkcalin27-Mar-07 22:12
darkcalin27-Mar-07 22:12 
GeneralRe: 2 Equations 2 Unknows - How to program in C#? Pin
darkcalin27-Mar-07 22:29
darkcalin27-Mar-07 22:29 
QuestionNAT Translation problem Pin
kamPooh27-Mar-07 15:50
kamPooh27-Mar-07 15:50 
AnswerRe: NAT Translation problem Pin
m@u27-Mar-07 21:54
m@u27-Mar-07 21:54 
QuestionReading XML from a url on a Pocket PC Pin
Brad Wick27-Mar-07 14:39
Brad Wick27-Mar-07 14:39 
QuestionStrange problem in property grid when using custom TypeConverter Pin
cueshot27-Mar-07 12:09
cueshot27-Mar-07 12:09 
Hi,

Wasn't sure exactly what forum to post this to, but in case this could be a problem in my code (C#), I decided to post it here.

Having a very strange problem here. Have a custom control. Inherited from ListView. I call it ImageView. Have a custom property on it called Thumbnail which itself is actually an object with multiple properties. Using a custom TypeConverter which inherits from ExpandableObjectConverter. Have a form with the ImageView on it. I open Visual Studio and open the form without making any changes to my project or compiling. The string to object (and vice versa) conversion for the Thumbnail property works exactly as it should in the property grid for the ImageView. I make a change...ANY change...to my project and recompile, it breaks. After recompiling, I open the form and in the textbox to the right of the Thumbnail property name in the property grid reads the full namespace.class.class string instead of the custom text which represents the property settings. I modify the text, but even if I change to something that should convert to the object, it gives me cannot convert to System.String errors, object not instantiated errors, and casting errors (not all at once, but I've gotten at least one of each of these errors throughout my troubleshooting). Without making any changes, I close out of VS (just closing the form or closing the project doesn't do it, I must close completely out of VS), and then open VS again, open the form without making any changes or compiling, it works. As soon as I make a change anywhere (even just adding a file to the project) and then compile, it breaks. I'm using VS Standard Edition w/ SP1. It was doing this before SP1 and continues to do so afterwards. I've tried repairing VS, even uninstalling and reinstalling, to no avail. I've tried creating new projects and creating quick small objects and converters and adding them to an inherited control within the new project. Happens then, too. Oddly enough, though, it seems this started happening when I made a class name change with one of the other expandable properties I already had on the ImageView. It seems lots of things went haywire when I did that. Got everything worked out except this. Since then, I haven't been able to kill this bug. Have any of you experienced this? Could this be a bug in VS, or could there be something strange with my code that would be causing this?

Sorry for the long-winded post. Strange and complex issue. Wanted to get all the details in.

Thanks

Rob

AnswerRe: Strange problem in property grid when using custom TypeConverter Pin
m@u27-Mar-07 22:15
m@u27-Mar-07 22:15 
GeneralRe: Strange problem in property grid when using custom TypeConverter Pin
cueshot30-Mar-07 11:57
cueshot30-Mar-07 11:57 
QuestionRe: Strange problem in property grid when using custom TypeConverter Pin
cueshot30-Mar-07 15:20
cueshot30-Mar-07 15:20 
AnswerRe: Strange problem in property grid when using custom TypeConverter Pin
cueshot5-Apr-07 13:35
cueshot5-Apr-07 13:35 
QuestionRe: Strange problem in property grid when using custom TypeConverter Pin
cueshot5-Apr-07 13:57
cueshot5-Apr-07 13:57 
QuestionVs 2005 Addin Question Pin
Jason McBurney27-Mar-07 11:57
Jason McBurney27-Mar-07 11:57 
QuestionSaving changes to a dataGridView - colour rows Pin
steve_rm27-Mar-07 11:36
steve_rm27-Mar-07 11:36 
AnswerRe: Saving changes to a dataGridView - colour rows Pin
joon vh.28-Mar-07 4:08
joon vh.28-Mar-07 4:08 
QuestionIs is possible to Serialise a Dynamically created assembly? Pin
Trevor T27-Mar-07 11:07
Trevor T27-Mar-07 11:07 
Questionread image from picture box Pin
iman_kh27-Mar-07 10:53
iman_kh27-Mar-07 10:53 
AnswerRe: read image from picture box Pin
art_coding27-Mar-07 11:37
art_coding27-Mar-07 11:37 
QuestionAcceptchange() in data set Pin
iman_kh27-Mar-07 10:51
iman_kh27-Mar-07 10:51 
QuestionProvider model Pin
netJP12L27-Mar-07 10:24
netJP12L27-Mar-07 10:24 
QuestionC# network transfer stream problem Pin
art_coding27-Mar-07 10:19
art_coding27-Mar-07 10:19 
QuestionClass "Child" MUST NOT call "Euthanize" on class "Dog" Pin
Edmundisme27-Mar-07 9:54
Edmundisme27-Mar-07 9:54 
AnswerRe: Class "Child" MUST NOT call "Euthanize" on class "Dog" Pin
Dave Kreskowiak27-Mar-07 10:11
mveDave Kreskowiak27-Mar-07 10:11 
GeneralRe: Class "Child" MUST NOT call "Euthanize" on class "Dog" Pin
Austin Harris27-Mar-07 10:25
Austin Harris27-Mar-07 10:25 

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.