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

C#

 
QuestionWant to display text vertically? Pin
...---...9-Sep-05 10:54
...---...9-Sep-05 10:54 
AnswerRe: Want to display text vertically? Pin
Kujtim Hyseni9-Sep-05 12:48
Kujtim Hyseni9-Sep-05 12:48 
AnswerRe: Want to display text vertically? Pin
Kujtim Hyseni9-Sep-05 12:54
Kujtim Hyseni9-Sep-05 12:54 
AnswerRe: Want to display text vertically? Pin
Mohamad Al Husseiny9-Sep-05 14:11
Mohamad Al Husseiny9-Sep-05 14:11 
GeneralRe: Want to display text vertically? Pin
Anonymous9-Sep-05 16:39
Anonymous9-Sep-05 16:39 
Questiondate format (UK) Pin
pedros739-Sep-05 9:52
pedros739-Sep-05 9:52 
AnswerRe: date format (UK) Pin
Guffa9-Sep-05 11:38
Guffa9-Sep-05 11:38 
QuestionXML deserializer question Pin
Tom Wright9-Sep-05 9:47
Tom Wright9-Sep-05 9:47 
okay I got my COM port settings being saved using XMLserializer but I cannot figure out how to get my settings to load from the XML file. Any help with this?

I'm using a class I found on Microsoft's website called CommBase. Here is my code to get the settings:
<br />
		public bool LoadXMLSettings()<br />
		{<br />
			String XMLFileName = "Settings.xml";<br />
			<br />
			if (File.Exists(XMLFileName))<br />
			{<br />
				using(FileStream fs = new FileStream(XMLFileName, FileMode.Open))<br />
				{<br />
					miniterminal.CommBaseTermSettings ss = miniterminal.CommBaseTermSettings.LoadFromXML(fs);<br />
                    if (ss != null)<br />
					{<br />
						miniterminal.CommBaseTermSettings s = miniterminal.settings;<br />
						MessageBox.Show(s.port);<br />
						PortCombo.Text = s.port;<br />
						fs.Close();<br />
						return true;<br />
					}<br />
					fs.Close();<br />
				}<br />
			}<br />
			return false;<br />
		}<br />

Thanks


Tom Wright
tawright915@yahoo.com
AnswerRe: XML deserializer question Pin
Judah Gabriel Himango9-Sep-05 10:24
sponsorJudah Gabriel Himango9-Sep-05 10:24 
General[Message Deleted] Pin
Tom Wright9-Sep-05 11:34
Tom Wright9-Sep-05 11:34 
GeneralRe: [Msg Deleted] Pin
Judah Gabriel Himango9-Sep-05 11:39
sponsorJudah Gabriel Himango9-Sep-05 11:39 
GeneralRe: [Msg Deleted] Pin
Tom Wright9-Sep-05 11:56
Tom Wright9-Sep-05 11:56 
GeneralRe: [Msg Deleted] Pin
Judah Gabriel Himango9-Sep-05 19:17
sponsorJudah Gabriel Himango9-Sep-05 19:17 
GeneralRe: [Msg Deleted] Pin
Tom Wright9-Sep-05 12:17
Tom Wright9-Sep-05 12:17 
GeneralRe: [Msg Deleted] Pin
Judah Gabriel Himango9-Sep-05 19:17
sponsorJudah Gabriel Himango9-Sep-05 19:17 
GeneralRe: XML deserializer question Pin
Tom Wright9-Sep-05 11:42
Tom Wright9-Sep-05 11:42 
GeneralRe: XML deserializer question Pin
S. Senthil Kumar9-Sep-05 22:44
S. Senthil Kumar9-Sep-05 22:44 
GeneralRe: XML deserializer question Pin
Tom Wright10-Sep-05 4:48
Tom Wright10-Sep-05 4:48 
QuestionGenerics and pointers Pin
kippolito9-Sep-05 9:46
kippolito9-Sep-05 9:46 
AnswerRe: Generics and pointers Pin
Judah Gabriel Himango9-Sep-05 10:23
sponsorJudah Gabriel Himango9-Sep-05 10:23 
Questionstatusbar Pin
xilefxilef9-Sep-05 7:59
xilefxilef9-Sep-05 7:59 
AnswerRe: statusbar Pin
miah alom9-Sep-05 8:05
miah alom9-Sep-05 8:05 
GeneralRe: statusbar Pin
xilefxilef9-Sep-05 8:11
xilefxilef9-Sep-05 8:11 
GeneralRe: statusbar Pin
miah alom9-Sep-05 8:32
miah alom9-Sep-05 8:32 
GeneralRe: statusbar Pin
xilefxilef9-Sep-05 8:47
xilefxilef9-Sep-05 8:47 

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.