Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
QuestionDataGridViewColumn with multiline textboxes Pin
hain13-Mar-09 10:05
hain13-Mar-09 10:05 
AnswerRe: DataGridViewColumn with multiline textboxes Pin
Henry Minute13-Mar-09 11:13
Henry Minute13-Mar-09 11:13 
GeneralRe: DataGridViewColumn with multiline textboxes Pin
hain13-Mar-09 12:34
hain13-Mar-09 12:34 
QuestionBackgroundWorker DTS SQL 2000 Pin
rafaelht310813-Mar-09 9:29
rafaelht310813-Mar-09 9:29 
AnswerRe: BackgroundWorker DTS SQL 2000 Pin
DaveyM6913-Mar-09 11:23
professionalDaveyM6913-Mar-09 11:23 
GeneralRe: BackgroundWorker DTS SQL 2000 Pin
rafaelht310813-Mar-09 11:36
rafaelht310813-Mar-09 11:36 
Question[Message Deleted] Pin
hkjghkj113-Mar-09 7:20
hkjghkj113-Mar-09 7:20 
AnswerRe: Transparent *.gif in PictureBox and Rotating the .gif within Pin
Xmen Real 13-Mar-09 7:31
professional Xmen Real 13-Mar-09 7:31 
General[Message Deleted] Pin
hkjghkj113-Mar-09 7:37
hkjghkj113-Mar-09 7:37 
GeneralRe: Transparent *.gif in PictureBox and Rotating the .gif within Pin
Xmen Real 13-Mar-09 7:42
professional Xmen Real 13-Mar-09 7:42 
Questioncharacter segmentation Pin
Swati Khanna13-Mar-09 7:20
Swati Khanna13-Mar-09 7:20 
QuestionRe: character segmentation Pin
led mike13-Mar-09 7:54
led mike13-Mar-09 7:54 
GeneralRe: character segmentation Pin
Xmen Real 13-Mar-09 8:07
professional Xmen Real 13-Mar-09 8:07 
AnswerRe: character segmentation Pin
CPallini13-Mar-09 8:11
mveCPallini13-Mar-09 8:11 
AnswerRe: character segmentation [modified] Pin
0x3c013-Mar-09 8:29
0x3c013-Mar-09 8:29 
GeneralRe: character segmentation Pin
Xmen Real 13-Mar-09 8:32
professional Xmen Real 13-Mar-09 8:32 
GeneralRe: character segmentation Pin
0x3c013-Mar-09 8:46
0x3c013-Mar-09 8:46 
Questiongetting http status code Pin
laziale13-Mar-09 6:49
laziale13-Mar-09 6:49 
AnswerRe: getting http status code Pin
led mike13-Mar-09 7:53
led mike13-Mar-09 7:53 
GeneralRe: getting http status code Pin
laziale13-Mar-09 8:07
laziale13-Mar-09 8:07 
Questiongeneric comboBox method Pin
ch0pper113-Mar-09 6:45
ch0pper113-Mar-09 6:45 
AnswerRe: generic comboBox method Pin
J$13-Mar-09 10:02
J$13-Mar-09 10:02 
GeneralRe: generic comboBox method Pin
ch0pper117-Mar-09 4:31
ch0pper117-Mar-09 4:31 
QuestionAutomatic Font serialization Pin
baranils13-Mar-09 6:18
baranils13-Mar-09 6:18 
Hello

I'm using a class of about 30 different parameters

I find very easy to use the little method below to automaticaly serialize and save those parameters

Unfortunately it does not work for Font
Is there some trick to use to wrap fonts the same way ?
Or do I have to serialize ALL elements one by one manualy ?

Tanks for any help


      // *******************************************************************************************
private void SaveTemplate()
{
  XmlSerializer xs;
  StreamWriter sw;
  string TemplateFile = "d:/tmp/xxx.xml";
  if (TemplateFile.Length <= 0)
  {
    return;
  }
  xs = new XmlSerializer(typeof(C_PrintSettings));
  using (sw = new StreamWriter(TemplateFile, false, Encoding.Default))
  {
    xs.Serialize(sw, Document.PrintSettings);
    sw.Close();
  }
}

AnswerRe: Automatic Font serialization Pin
led mike13-Mar-09 7:49
led mike13-Mar-09 7:49 

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.