Click here to Skip to main content
15,899,007 members
Home / Discussions / C#
   

C#

 
QuestionProblem getting serial port to open Pin
NYTSX24-Sep-06 7:50
NYTSX24-Sep-06 7:50 
AnswerRe: Problem getting serial port to open Pin
Ed.Poore24-Sep-06 8:23
Ed.Poore24-Sep-06 8:23 
GeneralRe: Problem getting serial port to open Pin
NYTSX25-Sep-06 0:59
NYTSX25-Sep-06 0:59 
GeneralRe: Problem getting serial port to open Pin
NYTSX25-Sep-06 1:12
NYTSX25-Sep-06 1:12 
GeneralRe: Problem getting serial port to open Pin
Ed.Poore25-Sep-06 1:19
Ed.Poore25-Sep-06 1:19 
QuestionSaving objects in Files Pin
ezazazel24-Sep-06 6:32
ezazazel24-Sep-06 6:32 
AnswerRe: Saving objects in Files Pin
Ed.Poore24-Sep-06 8:26
Ed.Poore24-Sep-06 8:26 
GeneralRe: Saving objects in Files Pin
Niiiissssshhhhhuuuuu24-Sep-06 17:10
Niiiissssshhhhhuuuuu24-Sep-06 17:10 
You can use binary serialization and also you can use xml serialization for it.

For eg,
using System.Runtime;
using System.Runtime.Serialization.Formatters;

//Serilization//
Object s=new Object(textBox1.Text,textBox2.Text,textBox3.Text);
System.Runtime.Serialization.IFormatter f;
f=new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
System.IO.FileStream outf=new System.IO.FileStrea(@"d:\s.bin",System.IO.FileMode.Create,System.IO.FileAccess.Write);
f.Serialize(outf,s);


//Deserializeation//
System.Runtime.Serialization.IFormatter f;
f=new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
System.IO.FileStream fin=new System.IO.FileStream(@"d:\s.bin",System.IO.FileMode.Open,System.IO.FileAccess.Read);
Object s=(Object)f.Deserialize(fin);


Enjoy!!!!
Cool | :cool: Cool | :cool:


<marquee>nishu
GeneralRe: Saving objects in Files Pin
Ed.Poore24-Sep-06 22:54
Ed.Poore24-Sep-06 22:54 
GeneralRe: Saving objects in Files Pin
ezazazel25-Sep-06 8:25
ezazazel25-Sep-06 8:25 
GeneralRe: Saving objects in Files Pin
ezazazel25-Sep-06 8:26
ezazazel25-Sep-06 8:26 
QuestionKeyboard focus trouble with unmanaged code Pin
zapsolution24-Sep-06 5:13
zapsolution24-Sep-06 5:13 
AnswerRe: Keyboard focus trouble with unmanaged code Pin
Nader Elshehabi24-Sep-06 11:11
Nader Elshehabi24-Sep-06 11:11 
GeneralRe: Keyboard focus trouble with unmanaged code Pin
zapsolution24-Sep-06 11:43
zapsolution24-Sep-06 11:43 
GeneralRe: Keyboard focus trouble with unmanaged code Pin
Nader Elshehabi24-Sep-06 12:02
Nader Elshehabi24-Sep-06 12:02 
GeneralRe: Keyboard focus trouble with unmanaged code Pin
zapsolution24-Sep-06 20:29
zapsolution24-Sep-06 20:29 
QuestionCustom DataGridColumStyle with color dialog Pin
TeamWild24-Sep-06 3:27
TeamWild24-Sep-06 3:27 
AnswerRe: Custom DataGridColumStyle with color dialog Pin
Alexandr Sergeevich Ilyin24-Sep-06 6:06
Alexandr Sergeevich Ilyin24-Sep-06 6:06 
QuestionHow could i record a sound ?!!! Pin
Nafiseh Salmani24-Sep-06 2:06
Nafiseh Salmani24-Sep-06 2:06 
AnswerRe: How could i record a sound ?!!! Pin
mav.northwind24-Sep-06 2:28
mav.northwind24-Sep-06 2:28 
GeneralRe: How could i record a sound ?!!! Pin
Nafiseh Salmani24-Sep-06 20:22
Nafiseh Salmani24-Sep-06 20:22 
QuestionWhat is an easiest way of doing Background operation w/o affecting GUI Pin
engsrini24-Sep-06 1:53
engsrini24-Sep-06 1:53 
AnswerRe: What is an easiest way of doing Background operation w/o affecting GUI Pin
Stefan Troschuetz24-Sep-06 3:02
Stefan Troschuetz24-Sep-06 3:02 
GeneralRe: What is an easiest way of doing Background operation w/o affecting GUI Pin
engsrini24-Sep-06 3:26
engsrini24-Sep-06 3:26 
AnswerRe: What is an easiest way of doing Background operation w/o affecting GUI Pin
Tilewa24-Sep-06 3:23
Tilewa24-Sep-06 3:23 

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.