Click here to Skip to main content
15,929,749 members
Home / Discussions / C#
   

C#

 
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 
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 
thanks for reply
i use from TypeConvector in my code but c# dosent know it.
my serialize or save code is:
xw.WriteStartElement("TextBox");
xw.WriteAttributeString("X", theText.Left.ToString());
xw.WriteAttributeString("Y", theText.Top.ToString());
xw.WriteAttributeString("Width",c.Width.ToString());
xw.WriteAttributeString("Height",c.Height.ToString()); xw.WriteAttributeString("Value", c.Text);
TypeConverter converter = TypeDescriptor.GetConverter(theText.Font); xw.WriteAttributeString("Font", converter.ConvertToString(theText.Font))
xw.WriteAttributeString("TextAlign",theText.TextAlign.ToString());

xw.WriteAttributeString("Backcolor",c.BackColor.ToArgb().ToString());
xw.WriteAttributeString("Forecolor",c.ForeColor.ToArgb().ToString());
xw.WriteEndElement();
and my deserialize or read code is:
for (int i = 0; i < reader.AttributeCount; i++)
{
reader.MoveToAttribute(i); switch(reader.Name)
{
case "X":
theTextBox.SetBounds(Convert.ToInt32(reader.Value),
theTextBox.Top, theTextBox.Width, theTextBox.Height);
break; case "Y": theTextBox.SetBounds(theTextBox.Left,
Convert.ToInt32(reader.Value), theTextBox.Width,theTextBox.Height); break;
.. case "Font": TypeConverter ff = TypeDescriptor.GetConverter(reader.value);
theTextBox.Font=(System.Drawing.Font)ff.ConvertFromString (reader.Value );
break;

case "Backcolor":
theTextBox.BackColor= Color.FromArgb(Convert.ToInt32(reader.Value));
break;
please tell me,what i do for my deserialize code?
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 
QuestionExplorer DragImage? Pin
TylerBrinks21-Jun-04 4:47
TylerBrinks21-Jun-04 4:47 
AnswerRe: Explorer DragImage? Pin
Heath Stewart21-Jun-04 5:05
protectorHeath Stewart21-Jun-04 5:05 
GeneralRe: Explorer DragImage? Pin
TylerBrinks21-Jun-04 11:35
TylerBrinks21-Jun-04 11:35 

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.