Click here to Skip to main content
15,914,413 members
Home / Discussions / C#
   

C#

 
Generalenumerating groups a user belongs to using WinNT:// Pin
inyoursadachine21-Jun-04 6:58
inyoursadachine21-Jun-04 6:58 
GeneralRe: enumerating groups a user belongs to using WinNT:// Pin
Dave Kreskowiak21-Jun-04 8:12
mveDave Kreskowiak21-Jun-04 8:12 
Generalserializing in c#.net Pin
fatidarya21-Jun-04 6:18
fatidarya21-Jun-04 6:18 
GeneralRe: serializing in c#.net Pin
Heath Stewart21-Jun-04 6:38
protectorHeath Stewart21-Jun-04 6:38 
GeneralRe: serializing in c#.net Pin
fatidarya21-Jun-04 21:31
fatidarya21-Jun-04 21:31 
GeneralRe: serializing in c#.net Pin
thomasa21-Jun-04 22:42
thomasa21-Jun-04 22:42 
GeneralRe:thanks &deserializing in c#.net Pin
fatidarya22-Jun-04 0:43
fatidarya22-Jun-04 0:43 
GeneralRe: serializing in c#.net Pin
Heath Stewart22-Jun-04 2:38
protectorHeath Stewart22-Jun-04 2:38 
You should be using TypeConverters for the whole thing, otherwise use ToString. Many classes can't be reconstituted from their ToString representations. If you use XmlSerializer as I mentioned, this is all done for you. But, if you insist on doing things the hard way, you can get a TypeConverter reference for each type using something like this:
TypeConverter converter = TypeDescriptor.GetConverter(theText.Left);
xw.WriteAttributeString("X", converter.ConvertToString(theText.Left));
converter = TypeDescriptor.GetConverter(theText.Top);
xw.WriteAttributeString("Y", converter.ConvertToString(theText.Top));
// ...
xw.WriteEndElement();


 

Microsoft MVP, Visual C#
My Articles
GeneralRe: deserializing in c#.net Pin
fatidarya22-Jun-04 3:00
fatidarya22-Jun-04 3:00 
GeneralRe: deserializing in c#.net Pin
Heath Stewart22-Jun-04 4:07
protectorHeath Stewart22-Jun-04 4:07 
GeneralRe: deserializing in c#.net Pin
fatidarya22-Jun-04 19:12
fatidarya22-Jun-04 19:12 
GeneralRe: deserializing in c#.net Pin
Heath Stewart22-Jun-04 19:19
protectorHeath Stewart22-Jun-04 19:19 
GeneralRe: serializing in c#.net Pin
Stefan Troschuetz21-Jun-04 20:44
Stefan Troschuetz21-Jun-04 20:44 
GeneralJava script in c# Pin
_Searcher_21-Jun-04 5:53
_Searcher_21-Jun-04 5:53 
GeneralRe: Java script in c# Pin
Dave Kreskowiak21-Jun-04 6:10
mveDave Kreskowiak21-Jun-04 6:10 
GeneralAttempting to implement Keyed MD-5 Hash Pin
selil21-Jun-04 5:29
selil21-Jun-04 5:29 
GeneralRe: Attempting to implement Keyed MD-5 Hash Pin
Heath Stewart21-Jun-04 5:42
protectorHeath Stewart21-Jun-04 5:42 
GeneralRe: Attempting to implement Keyed MD-5 Hash Pin
selil21-Jun-04 6:00
selil21-Jun-04 6:00 
GeneralRe: Attempting to implement Keyed MD-5 Hash Pin
Heath Stewart21-Jun-04 6:34
protectorHeath Stewart21-Jun-04 6:34 
GeneralRe: Attempting to implement Keyed MD-5 Hash Pin
Dave Kreskowiak21-Jun-04 5:52
mveDave Kreskowiak21-Jun-04 5:52 
GeneralRe: Attempting to implement Keyed MD-5 Hash Pin
selil21-Jun-04 6:10
selil21-Jun-04 6:10 
QuestionHow to use proertyGrid to show html componet's property? Pin
nakey_yang21-Jun-04 5:28
nakey_yang21-Jun-04 5:28 
AnswerRe: How to use proertyGrid to show html componet's property? Pin
Heath Stewart21-Jun-04 5:35
protectorHeath Stewart21-Jun-04 5:35 
Generalusing xmodem protocol for file transfer in dotnet(c#) Pin
son_sant21-Jun-04 5:20
son_sant21-Jun-04 5:20 
GeneralRe: using xmodem protocol for file transfer in dotnet(c#) Pin
Heath Stewart21-Jun-04 5:33
protectorHeath Stewart21-Jun-04 5:33 

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.