Click here to Skip to main content
15,921,941 members
Home / Discussions / C#
   

C#

 
Questionhow to create a (splitter?)bar as in outlook 2003... Pin
just_starting16-Jan-05 2:45
just_starting16-Jan-05 2:45 
AnswerRe: how to create a (splitter?)bar as in outlook 2003... Pin
Heath Stewart16-Jan-05 9:09
protectorHeath Stewart16-Jan-05 9:09 
GeneralRe: how to create a (splitter?)bar as in outlook 2003... Pin
just_starting17-Jan-05 4:45
just_starting17-Jan-05 4:45 
GeneralRe: how to create a (splitter?)bar as in outlook 2003... Pin
Heath Stewart17-Jan-05 5:57
protectorHeath Stewart17-Jan-05 5:57 
AnswerRe: how to create a (splitter?)bar as in outlook 2003... Pin
Craig G Fraser17-Jan-05 23:42
Craig G Fraser17-Jan-05 23:42 
GeneralIP Input Custom Control Pin
Hercules0116-Jan-05 1:26
Hercules0116-Jan-05 1:26 
GeneralRe: IP Input Custom Control Pin
Judah Gabriel Himango16-Jan-05 12:33
sponsorJudah Gabriel Himango16-Jan-05 12:33 
GeneralNetworkStream Pin
alexiev_nikolay15-Jan-05 23:58
alexiev_nikolay15-Jan-05 23:58 
GeneralRe: NetworkStream Pin
Heath Stewart16-Jan-05 9:42
protectorHeath Stewart16-Jan-05 9:42 
GeneralShortcut Keys Pin
egyseiko15-Jan-05 22:49
egyseiko15-Jan-05 22:49 
GeneralRe: Shortcut Keys Pin
alexiev_nikolay16-Jan-05 0:03
alexiev_nikolay16-Jan-05 0:03 
GeneralRe: Shortcut Keys Pin
egyseiko16-Jan-05 1:38
egyseiko16-Jan-05 1:38 
GeneralRe: Shortcut Keys Pin
Mazdak16-Jan-05 5:35
Mazdak16-Jan-05 5:35 
Generalrelative XML file path Pin
asiddiqi@bankalfalah.com15-Jan-05 21:03
sussasiddiqi@bankalfalah.com15-Jan-05 21:03 
GeneralRe: relative XML file path Pin
Heath Stewart16-Jan-05 9:39
protectorHeath Stewart16-Jan-05 9:39 
GeneralRe: relative XML file path Pin
Gregg Holter16-Jan-05 16:44
Gregg Holter16-Jan-05 16:44 
GeneralMarshal Structs Pin
Anonymous15-Jan-05 12:51
Anonymous15-Jan-05 12:51 
GeneralRe: Marshal Structs Pin
Heath Stewart16-Jan-05 9:46
protectorHeath Stewart16-Jan-05 9:46 
Generalloading an xml file Pin
John L. DeVito15-Jan-05 12:48
professionalJohn L. DeVito15-Jan-05 12:48 
GeneralRe: loading an xml file Pin
Robert Rohde15-Jan-05 19:02
Robert Rohde15-Jan-05 19:02 
Hi,

Ill try to break up your requests to little answerable parts Wink | ;) :

1. I see no need for you to specify a NameTable for your XmlDocument. Just use the parameterless constructor, when working with XmlDocument.

2. To load the last file used in the next session you will have to store this information somewhere. As I think this wont be the last setting you need to store in your program I would create a configuration file in xml format where you can store any type of information. You could search CodeProject for this part. If I remember right there is at least one implementation around which should make this point easy.

3. To create a skeleton of your xml was no bad idea. Depending on the complexity of its structure you could also create it programmatically, but having a template makes it simpler. You can add the file directly to your assembly as an embedded resource and save it to your desired location with the following code:
<br />
System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();<br />
<br />
Stream inputStream = assembly.GetManifestResourceStream("DefaultNameSpaceOfTheProject.FileNameOfTheEmbeddedResource");<br />
FileStream outputStream = new FileStream(newFilePath, FileMode.CreateNew);<br />
byte[] buffer = new byte[1024];<br />
while (true) <br />
{<br />
	int read = inputStream.Read(buffer, 0, buffer.Length);				<br />
	outputStream.Write(buffer, 0, read);<br />
	if (read < 1024)<br />
		break;<br />
}<br />
outputStream.Close();<br />
inputStream.Close();<br />

This will assure that noone changes your default file once the program is installed.
GeneralParse RTF to HTML Pin
vargasbo15-Jan-05 11:08
vargasbo15-Jan-05 11:08 
GeneralRe: Parse RTF to HTML Pin
Heath Stewart16-Jan-05 9:23
protectorHeath Stewart16-Jan-05 9:23 
GeneralRe: Parse RTF to HTML Pin
Anonymous21-Jan-05 9:34
Anonymous21-Jan-05 9:34 
GeneralRe: Parse RTF to HTML Pin
Heath Stewart21-Jan-05 13:14
protectorHeath Stewart21-Jan-05 13:14 
GeneralAlpha Channel in DirectX Pin
Rob Tomson15-Jan-05 9:35
Rob Tomson15-Jan-05 9: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.