473,561 Members | 3,876 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I get the specific file handle information from a System.Diagnost ics.Process.Sta rt call?

for example, let's say I do something like,

System.Diagnost ics.Process.Sta rt("notepad.exe ","sample.txt") ;

if the user does a SaveAs (in notepad), how can i capture the path that
the user selects?

thanks...

Nov 18 '06 #1
3 3988
Hi,
for example, let's say I do something like,

System.Diagnost ics.Process.Sta rt("notepad.exe ","sample.txt") ;

if the user does a SaveAs (in notepad), how can i capture the path that
the user selects?
I don't think that's possible, but why run notepad when you could very easily
create the same basic functionality (probably all functionality) yourself in
your own application?

(I realize that you might not really need notepad, in particular, but the code
here was fun to write anyway :)

After my signature is the code for something very similar to Notepad, which
I'll call Textpad (already in use?).

Notes:

- My code targets the 2.0 framework and VS 2005
- I did not add any exception handling logic

- To make this work you must:

1. add a new Windows Form file to an existing VS 2005 project
2. name it, "Textpad.cs "
3. close the Form designer for Textpad, if it's open
4. replace the Textpad.cs content with the content from my Textpad.cs file
(below).
5. replace the designer class content generated by VS
(Textpad.design er.cs)
with the content from my Textpad.designe r.cs file (second file below).
6. replace the "Textpad.re sx" content with the content from my mine (last
file below).
7. open the Textpad Form in the designer and make sure there are no
designer errors.

--
Dave Sexton

{Textpad.cs file}

using System;
using System.Collecti ons.Generic;
using System.Componen tModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows. Forms;
using System.Drawing. Printing;
using System.IO;

namespace TextpadApp
{
public partial class Textpad : Form
{
#region Public Properties
public static readonly string SupportedFileTy peFilter = "Text Document
(*.txt)|*.txt|A ll Files (*.*)|*.*";
#endregion

#region Private / Protected
private string filePath;
private bool dirty;
#endregion

#region Constructors
public Textpad()
{
InitializeCompo nent();

Environment.Cur rentDirectory =
Environment.Get FolderPath(Envi ronment.Special Folder.MyDocume nts);

ResetState();
}
#endregion

#region Methods
private void ResetState()
{
filePath = null;
txtInput.Text = null;
this.Text = "Textpad - New Document";
dirty = false;
}

private void SyncDocumentToF ile(string filePath)
{
this.filePath = filePath;
this.Text = "Textpad - " + Path.GetFileNam e(filePath);
dirty = false;
}

private void OpenDocument(st ring filePath)
{
txtInput.Text = File.ReadAllTex t(filePath, Encoding.ASCII) ;

// this method must be called AFTER txtInput is modified so that
// the TextChanged property doesn't set dirty to true again
SyncDocumentToF ile(filePath);
}

private void SaveDocument()
{
if (filePath != null)
SaveDocument(fi lePath);
else
UserSaveAs();
}

private void SaveDocument(st ring filePath)
{
File.WriteAllTe xt(filePath, txtInput.Text, Encoding.ASCII) ;

SyncDocumentToF ile(filePath);
}

private void UserSaveAs()
{
using (SaveFileDialog dialog = new SaveFileDialog( ))
{
dialog.CheckFil eExists = false;
dialog.CheckPat hExists = true;
dialog.AddExten sion = true;
dialog.CreatePr ompt = false;
dialog.DefaultE xt = "txt";
dialog.FileName = filePath ?? "NewDocument.tx t";
dialog.Filter = SupportedFileTy peFilter;
dialog.FilterIn dex = 0; // *.txt
dialog.Overwrit ePrompt = true;
dialog.Title = "Save Document";

if (dialog.ShowDia log(this) == DialogResult.OK )
SaveDocument(di alog.FileName);
}
}

private bool EnsureDocumentS aved()
{
if (dirty)
{
switch (MessageBox.Sho w(this,
string.Format(" There are unsaved changes to the current document.{0}{0} "
+
"Do you want the changes saved before continuing?",
Environment.New Line),
"Save Changes?", MessageBoxButto ns.YesNoCancel, MessageBoxIcon. Question,
MessageBoxDefau ltButton.Button 1))
{
case DialogResult.Ye s:
SaveDocument();
break;
case DialogResult.Ca ncel:
return false;
}
}

return true;
}

private void InitializePrint Document(PrintD ocument document)
{
if (txtInput.TextL ength == 0)
// nothing to print, so nothing to be initialized :)
return;

string text = txtInput.Text;

string[] lines = text.Split(new string[] { "\r\n" },
StringSplitOpti ons.None);

Font font = txtInput.Font;

StringFormat format = StringFormat.Ge nericDefault;
format.FormatFl ags |= StringFormatFla gs.MeasureTrail ingSpaces |
StringFormatFla gs.LineLimit;

int page = 0;
int remainder = lines.Length;

document.BeginP rint += delegate(object sender, PrintEventArgs e)
// this event handler is required because when the print
// preview dialog attempts to print the document the state
// of the local variables will have been retained. reset them:
{
page = 0;
remainder = lines.Length;
};

document.PrintP age += delegate(object sender, PrintPageEventA rgs e)
{
int nPageChars, nPageLines;
SizeF size = e.Graphics.Meas ureString(text, font, e.MarginBounds. Size,
format, out nPageChars, out nPageLines);

string pageText = string.Join("\r \n", lines, page++ * nPageLines,
Math.Min(remain der, nPageLines));

RectangleF bounds = new RectangleF(e.Ma rginBounds.X, e.MarginBounds. Y,
e.MarginBounds. Width, e.MarginBounds. Height);

e.Graphics.Draw String(pageText , font, Brushes.Black, bounds, format);

remainder -= nPageLines;

e.HasMorePages = remainder 0;
};
}
#endregion

#region Event Handlers
private void exitToolStripMe nuItem_Click(ob ject sender, EventArgs e)
{
Application.Exi t();
}

private void printToolStripM enuItem_Click(o bject sender, EventArgs e)
{
PrintDocument document = new PrintDocument() ;
InitializePrint Document(docume nt);

using (PrintDialog dialog = new PrintDialog())
{
// This line will be useful in case InitializePrint Document
// is extended to configure page settings
dialog.Document = document;

if (dialog.ShowDia log(this) == DialogResult.OK )
document.Print( );
}
}

private void printPreviewToo lStripMenuItem_ Click(object sender, EventArgs e)
{
PrintDocument document = new PrintDocument() ;
InitializePrint Document(docume nt);

using (PrintPreviewDi alog dialog = new PrintPreviewDia log())
{
dialog.Document = document;
dialog.ShowDial og(this);
}
}

private void newToolStripMen uItem_Click(obj ect sender, EventArgs e)
{
if (!EnsureDocumen tSaved())
return;

ResetState();
}

private void openToolStripMe nuItem_Click(ob ject sender, EventArgs e)
{
if (!EnsureDocumen tSaved())
return;

using (OpenFileDialog dialog = new OpenFileDialog( ))
{
dialog.CheckFil eExists = true;
dialog.CheckPat hExists = true;
dialog.AddExten sion = true;
dialog.DefaultE xt = "txt";
dialog.Filter = SupportedFileTy peFilter;
dialog.FilterIn dex = 0; // *.txt
dialog.RestoreD irectory = false;
dialog.Title = "Open Document";

if (dialog.ShowDia log(this) == DialogResult.OK )
OpenDocument(di alog.FileName);
}
}

private void saveToolStripMe nuItem_Click(ob ject sender, EventArgs e)
{
SaveDocument();
}

private void saveAsToolStrip MenuItem_Click( object sender, EventArgs e)
{
UserSaveAs();
}

private void undoToolStripMe nuItem_Click(ob ject sender, EventArgs e)
{
txtInput.Undo() ;
}

private void cutToolStripMen uItem_Click(obj ect sender, EventArgs e)
{
txtInput.Cut();
}

private void copyToolStripMe nuItem_Click(ob ject sender, EventArgs e)
{
txtInput.Copy() ;
}

private void pasteToolStripM enuItem_Click(o bject sender, EventArgs e)
{
txtInput.Paste( );
}

private void selectAllToolSt ripMenuItem_Cli ck(object sender, EventArgs e)
{
txtInput.Select All();
}

private void aboutToolStripM enuItem_Click(o bject sender, EventArgs e)
{
MessageBox.Show (this, string.Format(" Textpad{0}{0}Wr itten by Dave Sexton
(2006)", Environment.New Line),
"About Textpad", MessageBoxButto ns.OK, MessageBoxIcon. Information);
}

private void txtInput_TextCh anged(object sender, EventArgs e)
{
if (!dirty)
this.Text += "*";

dirty = true;
}

protected override void OnFormClosing(F ormClosingEvent Args e)
{
if (!EnsureDocumen tSaved())
e.Cancel = true;

base.OnFormClos ing(e);
}
#endregion
}
}
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- --
{Textpad.design er.cs file}

namespace TextpadApp
{
partial class Textpad
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.Componen tModel.IContain er components = null;

/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing ">true if managed resources should be disposed;
otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Disp ose();
}
base.Dispose(di sposing);
}

#region Windows Form Designer generated code

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeCompo nent()
{
System.Componen tModel.Componen tResourceManage r resources = new
System.Componen tModel.Componen tResourceManage r(typeof(Textpa d));
this.txtInput = new System.Windows. Forms.TextBox() ;
this.menuStrip1 = new System.Windows. Forms.MenuStrip ();
this.fileToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.newToolStr ipMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.openToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.toolStripS eparator = new System.Windows. Forms.ToolStrip Separator();
this.saveToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.saveAsTool StripMenuItem = new
System.Windows. Forms.ToolStrip MenuItem();
this.toolStripS eparator1 = new System.Windows. Forms.ToolStrip Separator();
this.printToolS tripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.printPrevi ewToolStripMenu Item = new
System.Windows. Forms.ToolStrip MenuItem();
this.toolStripS eparator2 = new System.Windows. Forms.ToolStrip Separator();
this.exitToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.editToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.undoToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.toolStripS eparator3 = new System.Windows. Forms.ToolStrip Separator();
this.cutToolStr ipMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.copyToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.pasteToolS tripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.toolStripS eparator4 = new System.Windows. Forms.ToolStrip Separator();
this.selectAllT oolStripMenuIte m = new
System.Windows. Forms.ToolStrip MenuItem();
this.toolsToolS tripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.customizeT oolStripMenuIte m = new
System.Windows. Forms.ToolStrip MenuItem();
this.optionsToo lStripMenuItem = new
System.Windows. Forms.ToolStrip MenuItem();
this.helpToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.contentsTo olStripMenuItem = new
System.Windows. Forms.ToolStrip MenuItem();
this.indexToolS tripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.searchTool StripMenuItem = new
System.Windows. Forms.ToolStrip MenuItem();
this.toolStripS eparator5 = new System.Windows. Forms.ToolStrip Separator();
this.aboutToolS tripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.menuStrip1 .SuspendLayout( );
this.SuspendLay out();
//
// txtInput
//
this.txtInput.A cceptsReturn = true;
this.txtInput.A cceptsTab = true;
this.txtInput.D ock = System.Windows. Forms.DockStyle .Fill;
this.txtInput.L ocation = new System.Drawing. Point(0, 24);
this.txtInput.M argin = new System.Windows. Forms.Padding(4 , 3, 4, 3);
this.txtInput.M axLength = 2147483647;
this.txtInput.M ultiline = true;
this.txtInput.N ame = "txtInput";
this.txtInput.S crollBars = System.Windows. Forms.ScrollBar s.Both;
this.txtInput.S ize = new System.Drawing. Size(613, 351);
this.txtInput.T abIndex = 0;
this.txtInput.W ordWrap = false;
this.txtInput.T extChanged += new
System.EventHan dler(this.txtIn put_TextChanged );
//
// menuStrip1
//
this.menuStrip1 .Items.AddRange (new System.Windows. Forms.ToolStrip Item[] {
this.fileToolSt ripMenuItem,
this.editToolSt ripMenuItem,
this.toolsToolS tripMenuItem,
this.helpToolSt ripMenuItem});
this.menuStrip1 .Location = new System.Drawing. Point(0, 0);
this.menuStrip1 .Name = "menuStrip1 ";
this.menuStrip1 .Padding = new System.Windows. Forms.Padding(8 , 2, 0, 2);
this.menuStrip1 .Size = new System.Drawing. Size(613, 24);
this.menuStrip1 .TabIndex = 1;
this.menuStrip1 .Text = "menuStrip1 ";
//
// fileToolStripMe nuItem
//
this.fileToolSt ripMenuItem.Dro pDownItems.AddR ange(new
System.Windows. Forms.ToolStrip Item[] {
this.newToolStr ipMenuItem,
this.openToolSt ripMenuItem,
this.toolStripS eparator,
this.saveToolSt ripMenuItem,
this.saveAsTool StripMenuItem,
this.toolStripS eparator1,
this.printToolS tripMenuItem,
this.printPrevi ewToolStripMenu Item,
this.toolStripS eparator2,
this.exitToolSt ripMenuItem});
this.fileToolSt ripMenuItem.Nam e = "fileToolStripM enuItem";
this.fileToolSt ripMenuItem.Siz e = new System.Drawing. Size(35, 20);
this.fileToolSt ripMenuItem.Tex t = "&File";
//
// newToolStripMen uItem
//
this.newToolStr ipMenuItem.Imag e = ((System.Drawin g.Image)
(resources.GetO bject("newToolS tripMenuItem.Im age")));
this.newToolStr ipMenuItem.Imag eTransparentCol or =
System.Drawing. Color.Magenta;
this.newToolStr ipMenuItem.Name = "newToolStripMe nuItem";
this.newToolStr ipMenuItem.Shor tcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.N))) ;
this.newToolStr ipMenuItem.Size = new System.Drawing. Size(151, 22);
this.newToolStr ipMenuItem.Text = "&New";
this.newToolStr ipMenuItem.Clic k += new
System.EventHan dler(this.newTo olStripMenuItem _Click);
//
// openToolStripMe nuItem
//
this.openToolSt ripMenuItem.Ima ge = ((System.Drawin g.Image)
(resources.GetO bject("openTool StripMenuItem.I mage")));
this.openToolSt ripMenuItem.Ima geTransparentCo lor =
System.Drawing. Color.Magenta;
this.openToolSt ripMenuItem.Nam e = "openToolStripM enuItem";
this.openToolSt ripMenuItem.Sho rtcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.O))) ;
this.openToolSt ripMenuItem.Siz e = new System.Drawing. Size(151, 22);
this.openToolSt ripMenuItem.Tex t = "&Open";
this.openToolSt ripMenuItem.Cli ck += new
System.EventHan dler(this.openT oolStripMenuIte m_Click);
//
// toolStripSepara tor
//
this.toolStripS eparator.Name = "toolStripSepar ator";
this.toolStripS eparator.Size = new System.Drawing. Size(148, 6);
//
// saveToolStripMe nuItem
//
this.saveToolSt ripMenuItem.Ima ge = ((System.Drawin g.Image)
(resources.GetO bject("saveTool StripMenuItem.I mage")));
this.saveToolSt ripMenuItem.Ima geTransparentCo lor =
System.Drawing. Color.Magenta;
this.saveToolSt ripMenuItem.Nam e = "saveToolStripM enuItem";
this.saveToolSt ripMenuItem.Sho rtcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.S))) ;
this.saveToolSt ripMenuItem.Siz e = new System.Drawing. Size(151, 22);
this.saveToolSt ripMenuItem.Tex t = "&Save";
this.saveToolSt ripMenuItem.Cli ck += new
System.EventHan dler(this.saveT oolStripMenuIte m_Click);
//
// saveAsToolStrip MenuItem
//
this.saveAsTool StripMenuItem.N ame = "saveAsToolStri pMenuItem";
this.saveAsTool StripMenuItem.S ize = new System.Drawing. Size(151, 22);
this.saveAsTool StripMenuItem.T ext = "Save &As";
this.saveAsTool StripMenuItem.C lick += new
System.EventHan dler(this.saveA sToolStripMenuI tem_Click);
//
// toolStripSepara tor1
//
this.toolStripS eparator1.Name = "toolStripSepar ator1";
this.toolStripS eparator1.Size = new System.Drawing. Size(148, 6);
//
// printToolStripM enuItem
//
this.printToolS tripMenuItem.Im age = ((System.Drawin g.Image)
(resources.GetO bject("printToo lStripMenuItem. Image")));
this.printToolS tripMenuItem.Im ageTransparentC olor =
System.Drawing. Color.Magenta;
this.printToolS tripMenuItem.Na me = "printToolStrip MenuItem";
this.printToolS tripMenuItem.Sh ortcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.P))) ;
this.printToolS tripMenuItem.Si ze = new System.Drawing. Size(151, 22);
this.printToolS tripMenuItem.Te xt = "&Print";
this.printToolS tripMenuItem.Cl ick += new
System.EventHan dler(this.print ToolStripMenuIt em_Click);
//
// printPreviewToo lStripMenuItem
//
this.printPrevi ewToolStripMenu Item.Image = ((System.Drawin g.Image)
(resources.GetO bject("printPre viewToolStripMe nuItem.Image")) );
this.printPrevi ewToolStripMenu Item.ImageTrans parentColor =
System.Drawing. Color.Magenta;
this.printPrevi ewToolStripMenu Item.Name = "printPreviewTo olStripMenuItem ";
this.printPrevi ewToolStripMenu Item.Size = new System.Drawing. Size(151, 22);
this.printPrevi ewToolStripMenu Item.Text = "Print Pre&view";
this.printPrevi ewToolStripMenu Item.Click += new
System.EventHan dler(this.print PreviewToolStri pMenuItem_Click );
//
// toolStripSepara tor2
//
this.toolStripS eparator2.Name = "toolStripSepar ator2";
this.toolStripS eparator2.Size = new System.Drawing. Size(148, 6);
//
// exitToolStripMe nuItem
//
this.exitToolSt ripMenuItem.Nam e = "exitToolStripM enuItem";
this.exitToolSt ripMenuItem.Siz e = new System.Drawing. Size(151, 22);
this.exitToolSt ripMenuItem.Tex t = "E&xit";
this.exitToolSt ripMenuItem.Cli ck += new
System.EventHan dler(this.exitT oolStripMenuIte m_Click);
//
// editToolStripMe nuItem
//
this.editToolSt ripMenuItem.Dro pDownItems.AddR ange(new
System.Windows. Forms.ToolStrip Item[] {
this.undoToolSt ripMenuItem,
this.toolStripS eparator3,
this.cutToolStr ipMenuItem,
this.copyToolSt ripMenuItem,
this.pasteToolS tripMenuItem,
this.toolStripS eparator4,
this.selectAllT oolStripMenuIte m});
this.editToolSt ripMenuItem.Nam e = "editToolStripM enuItem";
this.editToolSt ripMenuItem.Siz e = new System.Drawing. Size(37, 20);
this.editToolSt ripMenuItem.Tex t = "&Edit";
//
// undoToolStripMe nuItem
//
this.undoToolSt ripMenuItem.Nam e = "undoToolStripM enuItem";
this.undoToolSt ripMenuItem.Sho rtcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.Z))) ;
this.undoToolSt ripMenuItem.Siz e = new System.Drawing. Size(152, 22);
this.undoToolSt ripMenuItem.Tex t = "&Undo";
this.undoToolSt ripMenuItem.Cli ck += new
System.EventHan dler(this.undoT oolStripMenuIte m_Click);
//
// toolStripSepara tor3
//
this.toolStripS eparator3.Name = "toolStripSepar ator3";
this.toolStripS eparator3.Size = new System.Drawing. Size(149, 6);
//
// cutToolStripMen uItem
//
this.cutToolStr ipMenuItem.Imag e = ((System.Drawin g.Image)
(resources.GetO bject("cutToolS tripMenuItem.Im age")));
this.cutToolStr ipMenuItem.Imag eTransparentCol or =
System.Drawing. Color.Magenta;
this.cutToolStr ipMenuItem.Name = "cutToolStripMe nuItem";
this.cutToolStr ipMenuItem.Shor tcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.X))) ;
this.cutToolStr ipMenuItem.Size = new System.Drawing. Size(152, 22);
this.cutToolStr ipMenuItem.Text = "Cu&t";
this.cutToolStr ipMenuItem.Clic k += new
System.EventHan dler(this.cutTo olStripMenuItem _Click);
//
// copyToolStripMe nuItem
//
this.copyToolSt ripMenuItem.Ima ge = ((System.Drawin g.Image)
(resources.GetO bject("copyTool StripMenuItem.I mage")));
this.copyToolSt ripMenuItem.Ima geTransparentCo lor =
System.Drawing. Color.Magenta;
this.copyToolSt ripMenuItem.Nam e = "copyToolStripM enuItem";
this.copyToolSt ripMenuItem.Sho rtcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.C))) ;
this.copyToolSt ripMenuItem.Siz e = new System.Drawing. Size(152, 22);
this.copyToolSt ripMenuItem.Tex t = "&Copy";
this.copyToolSt ripMenuItem.Cli ck += new
System.EventHan dler(this.copyT oolStripMenuIte m_Click);
//
// pasteToolStripM enuItem
//
this.pasteToolS tripMenuItem.Im age = ((System.Drawin g.Image)
(resources.GetO bject("pasteToo lStripMenuItem. Image")));
this.pasteToolS tripMenuItem.Im ageTransparentC olor =
System.Drawing. Color.Magenta;
this.pasteToolS tripMenuItem.Na me = "pasteToolStrip MenuItem";
this.pasteToolS tripMenuItem.Sh ortcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.V))) ;
this.pasteToolS tripMenuItem.Si ze = new System.Drawing. Size(152, 22);
this.pasteToolS tripMenuItem.Te xt = "&Paste";
this.pasteToolS tripMenuItem.Cl ick += new
System.EventHan dler(this.paste ToolStripMenuIt em_Click);
//
// toolStripSepara tor4
//
this.toolStripS eparator4.Name = "toolStripSepar ator4";
this.toolStripS eparator4.Size = new System.Drawing. Size(149, 6);
//
// selectAllToolSt ripMenuItem
//
this.selectAllT oolStripMenuIte m.Name = "selectAllToolS tripMenuItem";
this.selectAllT oolStripMenuIte m.Size = new System.Drawing. Size(152, 22);
this.selectAllT oolStripMenuIte m.Text = "Select &All";
this.selectAllT oolStripMenuIte m.Click += new
System.EventHan dler(this.selec tAllToolStripMe nuItem_Click);
//
// toolsToolStripM enuItem
//
this.toolsToolS tripMenuItem.Dr opDownItems.Add Range(new
System.Windows. Forms.ToolStrip Item[] {
this.customizeT oolStripMenuIte m,
this.optionsToo lStripMenuItem} );
this.toolsToolS tripMenuItem.Na me = "toolsToolStrip MenuItem";
this.toolsToolS tripMenuItem.Si ze = new System.Drawing. Size(44, 20);
this.toolsToolS tripMenuItem.Te xt = "&Tools";
this.toolsToolS tripMenuItem.Vi sible = false;
//
// customizeToolSt ripMenuItem
//
this.customizeT oolStripMenuIte m.Name = "customizeToolS tripMenuItem";
this.customizeT oolStripMenuIte m.Size = new System.Drawing. Size(134, 22);
this.customizeT oolStripMenuIte m.Text = "&Customize ";
//
// optionsToolStri pMenuItem
//
this.optionsToo lStripMenuItem. Name = "optionsToolStr ipMenuItem";
this.optionsToo lStripMenuItem. Size = new System.Drawing. Size(134, 22);
this.optionsToo lStripMenuItem. Text = "&Options";
//
// helpToolStripMe nuItem
//
this.helpToolSt ripMenuItem.Dro pDownItems.AddR ange(new
System.Windows. Forms.ToolStrip Item[] {
this.contentsTo olStripMenuItem ,
this.indexToolS tripMenuItem,
this.searchTool StripMenuItem,
this.toolStripS eparator5,
this.aboutToolS tripMenuItem});
this.helpToolSt ripMenuItem.Nam e = "helpToolStripM enuItem";
this.helpToolSt ripMenuItem.Siz e = new System.Drawing. Size(40, 20);
this.helpToolSt ripMenuItem.Tex t = "&Help";
//
// contentsToolStr ipMenuItem
//
this.contentsTo olStripMenuItem .Name = "contentsToolSt ripMenuItem";
this.contentsTo olStripMenuItem .Size = new System.Drawing. Size(152, 22);
this.contentsTo olStripMenuItem .Text = "&Contents" ;
this.contentsTo olStripMenuItem .Visible = false;
//
// indexToolStripM enuItem
//
this.indexToolS tripMenuItem.Na me = "indexToolStrip MenuItem";
this.indexToolS tripMenuItem.Si ze = new System.Drawing. Size(152, 22);
this.indexToolS tripMenuItem.Te xt = "&Index";
this.indexToolS tripMenuItem.Vi sible = false;
//
// searchToolStrip MenuItem
//
this.searchTool StripMenuItem.N ame = "searchToolStri pMenuItem";
this.searchTool StripMenuItem.S ize = new System.Drawing. Size(152, 22);
this.searchTool StripMenuItem.T ext = "&Search";
this.searchTool StripMenuItem.V isible = false;
//
// toolStripSepara tor5
//
this.toolStripS eparator5.Name = "toolStripSepar ator5";
this.toolStripS eparator5.Size = new System.Drawing. Size(149, 6);
this.toolStripS eparator5.Visib le = false;
//
// aboutToolStripM enuItem
//
this.aboutToolS tripMenuItem.Na me = "aboutToolStrip MenuItem";
this.aboutToolS tripMenuItem.Si ze = new System.Drawing. Size(152, 22);
this.aboutToolS tripMenuItem.Te xt = "&About..." ;
this.aboutToolS tripMenuItem.Cl ick += new
System.EventHan dler(this.about ToolStripMenuIt em_Click);
//
// Textpad
//
this.AutoScaleD imensions = new System.Drawing. SizeF(8F, 13F);
this.AutoScaleM ode = System.Windows. Forms.AutoScale Mode.Font;
this.ClientSize = new System.Drawing. Size(613, 375);
this.Controls.A dd(this.txtInpu t);
this.Controls.A dd(this.menuStr ip1);
this.DoubleBuff ered = true;
this.Font = new System.Drawing. Font("Lucida Console", 9.75F,
System.Drawing. FontStyle.Regul ar, System.Drawing. GraphicsUnit.Po int, ((byte)
(0)));
this.MainMenuSt rip = this.menuStrip1 ;
this.Margin = new System.Windows. Forms.Padding(4 , 3, 4, 3);
this.Name = "Textpad";
this.Text = "Textpad";
this.menuStrip1 .ResumeLayout(f alse);
this.menuStrip1 .PerformLayout( );
this.ResumeLayo ut(false);
this.PerformLay out();

}

#endregion

private System.Windows. Forms.TextBox txtInput;
private System.Windows. Forms.MenuStrip menuStrip1;
private System.Windows. Forms.ToolStrip MenuItem fileToolStripMe nuItem;
private System.Windows. Forms.ToolStrip MenuItem newToolStripMen uItem;
private System.Windows. Forms.ToolStrip MenuItem openToolStripMe nuItem;
private System.Windows. Forms.ToolStrip Separator toolStripSepara tor;
private System.Windows. Forms.ToolStrip MenuItem saveToolStripMe nuItem;
private System.Windows. Forms.ToolStrip MenuItem saveAsToolStrip MenuItem;
private System.Windows. Forms.ToolStrip Separator toolStripSepara tor1;
private System.Windows. Forms.ToolStrip MenuItem printToolStripM enuItem;
private System.Windows. Forms.ToolStrip MenuItem
printPreviewToo lStripMenuItem;
private System.Windows. Forms.ToolStrip Separator toolStripSepara tor2;
private System.Windows. Forms.ToolStrip MenuItem exitToolStripMe nuItem;
private System.Windows. Forms.ToolStrip MenuItem editToolStripMe nuItem;
private System.Windows. Forms.ToolStrip MenuItem undoToolStripMe nuItem;
private System.Windows. Forms.ToolStrip Separator toolStripSepara tor3;
private System.Windows. Forms.ToolStrip MenuItem cutToolStripMen uItem;
private System.Windows. Forms.ToolStrip MenuItem copyToolStripMe nuItem;
private System.Windows. Forms.ToolStrip MenuItem pasteToolStripM enuItem;
private System.Windows. Forms.ToolStrip Separator toolStripSepara tor4;
private System.Windows. Forms.ToolStrip MenuItem selectAllToolSt ripMenuItem;
private System.Windows. Forms.ToolStrip MenuItem toolsToolStripM enuItem;
private System.Windows. Forms.ToolStrip MenuItem customizeToolSt ripMenuItem;
private System.Windows. Forms.ToolStrip MenuItem optionsToolStri pMenuItem;
private System.Windows. Forms.ToolStrip MenuItem helpToolStripMe nuItem;
private System.Windows. Forms.ToolStrip MenuItem contentsToolStr ipMenuItem;
private System.Windows. Forms.ToolStrip MenuItem indexToolStripM enuItem;
private System.Windows. Forms.ToolStrip MenuItem searchToolStrip MenuItem;
private System.Windows. Forms.ToolStrip Separator toolStripSepara tor5;
private System.Windows. Forms.ToolStrip MenuItem aboutToolStripM enuItem;
}
}
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- --
{Textpad.resx file}

<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

Version 2.0

The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.

Example:

... ado.net/XML headers & schema ...
<resheader name="resmimety pe">text/microsoft-resx</resheader>
<resheader name="version"> 2.0</resheader>
<resheader name="reader">S ystem.Resources .ResXResourceRe ader,
System.Windows. Forms, ...</resheader>
<resheader name="writer">S ystem.Resources .ResXResourceWr iter,
System.Windows. Forms, ...</resheader>
<data name="Name1"><v alue>this is my long string</value><comment> this is a
comment</comment></data>
<data name="Color1" type="System.Dr awing.Color,
System.Drawing" >Blue</data>
<data name="Bitmap1"
mimetype="appli cation/x-microsoft.net.o bject.binary.ba se64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Dr awing.Icon, System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>[base64 mime encoded string representing a byte array form of
the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>

There are any number of "resheader" rows that contain simple
name/value pairs.

Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.

The mimetype is used for serialized objects, and tells the
ResXResourceRea der how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:

Note - application/x-microsoft.net.o bject.binary.ba se64 is the format
that the ResXResourceWri ter will generate, however the reader can
read any of the formats listed below.

mimetype: application/x-microsoft.net.o bject.binary.ba se64
value : The object must be serialized with
: System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er
: and then encoded with base64 encoding.

mimetype: application/x-microsoft.net.o bject.soap.base 64
value : The object must be serialized with
: System.Runtime. Serialization.F ormatters.Soap. SoapFormatter
: and then encoded with base64 encoding.

mimetype: application/x-microsoft.net.o bject.bytearray .base64
value : The object must be serialized into a byte array
: using a System.Componen tModel.TypeConv erter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:msdata="u rn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http ://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSe t="true">
<xsd:complexTyp e>
<xsd:choice maxOccurs="unbo unded">
<xsd:element name="metadata" >
<xsd:complexTyp e>
<xsd:sequence >
<xsd:element name="value" type="xsd:strin g" minOccurs="0" />
</xsd:sequence>
<xsd:attribut e name="name" use="required" type="xsd:strin g" />
<xsd:attribut e name="type" type="xsd:strin g" />
<xsd:attribut e name="mimetype" type="xsd:strin g" />
<xsd:attribut e ref="xml:space" />
</xsd:complexType >
</xsd:element>
<xsd:element name="assembly" >
<xsd:complexTyp e>
<xsd:attribut e name="alias" type="xsd:strin g" />
<xsd:attribut e name="name" type="xsd:strin g" />
</xsd:complexType >
</xsd:element>
<xsd:element name="data">
<xsd:complexTyp e>
<xsd:sequence >
<xsd:element name="value" type="xsd:strin g" minOccurs="0"
msdata:Ordinal= "1" />
<xsd:element name="comment" type="xsd:strin g" minOccurs="0"
msdata:Ordinal= "2" />
</xsd:sequence>
<xsd:attribut e name="name" type="xsd:strin g" use="required"
msdata:Ordinal= "1" />
<xsd:attribut e name="type" type="xsd:strin g" msdata:Ordinal= "3"
/>
<xsd:attribut e name="mimetype" type="xsd:strin g"
msdata:Ordinal= "4" />
<xsd:attribut e ref="xml:space" />
</xsd:complexType >
</xsd:element>
<xsd:element name="resheader ">
<xsd:complexTyp e>
<xsd:sequence >
<xsd:element name="value" type="xsd:strin g" minOccurs="0"
msdata:Ordinal= "1" />
</xsd:sequence>
<xsd:attribut e name="name" type="xsd:strin g" use="required" />
</xsd:complexType >
</xsd:element>
</xsd:choice>
</xsd:complexType >
</xsd:element>
</xsd:schema>
<resheader name="resmimety pe">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.R esources.ResXRe sourceReader, System.Windows. Forms,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9</value>
</resheader>
<resheader name="writer">
<value>System.R esources.ResXRe sourceWriter, System.Windows. Forms,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9</value>
</resheader>
<metadata name="menuStrip 1.TrayLocation" type="System.Dr awing.Point,
System.Drawing, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a">
<value>17, 17</value>
</metadata>
<assembly alias="System.D rawing" name="System.Dr awing, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" />
<data name="newToolSt ripMenuItem.Ima ge" type="System.Dr awing.Bitmap,
System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAQ9JREFUOE+ t09lq
wkAUBmBfyr5DfY3 2jaReSOmFCyKCgk KLFrVUBZeKiEbsh qRuaNw1xiXmLxMJ BJ0Zc+GBw9zMfDP nHMZm
u1ZE35s4zXCqjmC 8Al+sgHLjD9y7yG FWPIbecOO45yORt MAEHnxxJHL1IyKI 9JeEXqtMwOl50Q8 bSS0l
8PzBBPbqAQQxICr gjeapgKZpkJUdBm NZB+y3d/QSnsIZKrDdqZjMF Yj9OR9wB1NngHrQ sJC36EkrfIkT
PuDyJ84AZbOHNF2 j1Z2h9i3xAVKfOU jjZssN2oMFmq0xS kLfOmBu3E97iurn ENlKxzpgbpzwO0K h1kOy
KFoDjHmzVuYYjRm TDZfyWh9Yd/4B2Mz2w1z7EGUAA AAASUVORK5CYII=
</value>
</data>
<data name="openToolS tripMenuItem.Im age" type="System.Dr awing.Bitmap,
System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAlpJREFUOE+ tk21I
k1EYhif0oyA0sqI QCix/+GcQFFH9CCmiUBT LLEjShJofVBgL2f xoU9Pp5ubUlS5rU 9f8rCyjsA+pUCRC
TR1ppmVFUSlmhq7 8unrnQF1KGHTg/nEOz30993PO+7qJ FrmUeiv2n+Mij+X LRLLYULdF2pxlEV IDcw0p
AsyxD5fmI/rQ94pqi26eOlsfu Zj+7BgSm01QdA4i h7m73Yx9qGpavwa tjPebqCzOprPt8Y KQgzFagqL0
BEjyEFWVaBkdLHM xT34uYNwWR9nVTE oL0zHlp2DMSeaSR k6eKt4VWm5WM/rVPNN5SjDTLQebZ EHNA1wr
UvHjk3E6tsNcV62 e1r3KLGqtKm6Wpl NpSsVqVFJsOM8Vf SKFWjkGtcyZptSY zvC7XByx3zQoqCn TMvlG
CX1prnornPUmQJc UXsbSVhGK5bIOkc mQyveeTHiv4VZ5N k33Nc6iuSO8CIfm ECYa/bE/8ON1iRipJNh5
F0V6Bd86lfQ1JlF j1TDVq4COKCegLV IwHmGiKRB7/V6G7+5koHozymgf YRy5E1CgTWKgXcZ 1i5qWp0KS
rjgBcAJawph6Fsz Yk/2M1O1isGYLX8p9a b6wgqP+3rMvYciS 01GfzA1LFvQkQ6s Q9/khxhoCGHnox1Dt
NvorxXw0b8Km8UQ h2cip6GOzgNyMeK qKM7HdjqFZJ5pRk 2YJ9aql3EnxoCJx NaZ4Ly6e3UDY3O6 OEXRp
59ApTpIhiyDh9GH ORAZyPHQPB/ZtZ/cOMVvFPvh6e7F+3 SrWrHRnraf7Xz/xf/rJ/kvxb84I3U1y+9/W
AAAAAElFTkSuQmC C
</value>
</data>
<data name="saveToolS tripMenuItem.Im age" type="System.Dr awing.Bitmap,
System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAixJREFUOE+ tk91L
k3EUx/cvdN9N0EW3NTWGa 7EaPOUcyqphWBG9 PZEv5dJlmqhYmUY tXyBb4dJJy+kknF T4BqZIjaFMJUsz
V7TEoabYRDD49ju/6Pm1Mi+iH5zLz+c 855zvo1L9j/fsaRRUvvZltHmX8 Ni9gMaGCO47ZlBb 8wn22yHc
KJ9CackECgteIy9 3FBfOB6H0JrC3B6 ipXsVGb2V1Dca0X hxOe8JLEXhbF7mg suLLX3mCIwsr2G1 +DrVa
huWQRwjcj+a5oLT k87qCn/D78CLiTD4UXJ7GA XOTEDjrZ7ngku3d H4Jf4ZHJCLZJXlh zxpGa4hSCurth
LsjOGo0R/A4PBsPYrHdDlgMw mRxCUF31kQvkMwF FsB7c4/+ATYkNOHL0BZKSa oXgZuU0urvATgkc P/kK
lmMDfNu0MJqZPps 6/4D7cNDSCUmyC8HV skl0+MAyADS5vrG 7f0X59Tm+VFoYzZ yZEVTg5NR2GAwVQ nCl
cByeZuChc40FJwp jek5MmU/YkH6uiHdOTmHwfg/0+jIhsOWNMRiouh PlnUnAQoI4rYSht 7MYm5qDnHsN
e41tHNbucUGnKxI CiqXjHpTPJgHBZ/Nv4U1oHqGZJVwst iNe72JwI+J3PYA2 MV8IMjOG2dzLfOa tBg+2
7JDQ0tEPX9cguvv 8GHg5hH0mC9S6ei QweLumDhqNVQgo0 6dP9fN4UsIoJHRn OhVtmxZGM1NXKoJ 3JmTH
Cv71r/4OTrQ4xWMwWlcAA AAASUVORK5CYII=
</value>
</data>
<data name="printTool StripMenuItem.I mage" type="System.Dr awing.Bitmap,
System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAi1JREFUOE+ 1k/9P
UlEYxv2nWK2tVlt tGmpltrCcEQ1XUj SMaUHJNLIpNcnCr agplBvUoC/okJhZLG92ySUpU8 RNICdIhAio
EF+e7r1UZMDW1jr b+8t7z/N83vucc8rK/sdyeYIwvpopWYbR aZTk0uIx0o0/V/JbGt7lVTwxT6CKK ylt
oLd8xGYihS/hKGz2WaaeWUnoTA TsMz7UCztx9Ex7c YN3jkUQU4tb4DR5 LZaAcyEAg4VE5Yl LMFmJQoNQ
JA61gUA6k4XPH9p CN9s+gZz2oq5Jjl q+DDfUz3Fba86bO GY9jHiUdDF0mvqT 7A/F4fKEcE9nZf5d1j OI
B4ZxVJ2U5gyc8z7 0akegMX3AXb0ND1 +8R6/GgvZbeog61OA2K3 CA2lxR34JjZ69B2 T8EsVyN/Q0XcwY3
B14iGk8UpE43Uuk MNqhA6QyC4Q0src Qg7dagsbWHmuDHS cj7jDC9nsJTqx0a 4xjuaIfRqXoMSXc/hG0q
8C4owGnqwEGeFOX HxThH9eoEV7G7Vp iboE2pK0qnm9H1J Lz+NUzOBfHWEcAQ sQSuqAuVDa1gVZz KGUgU
jwoMqAzxNZbC3Od 1jDvDYPdth+7NCp P8Yf4V7KoR5A1ar g8gmQIoGMLxLJYj WSwEMphwb2J4MoZ B2yqU
LBZUIxHGYB9HlBf TE4jl9+GmBPTHv6 lfo//+GGoaZajmXQabum Xl1HHt5TRjz5Hz2 HlIgB3Vp7GNzWeo
RcX/+pq/AwHYL0leVl8fAAA AAElFTkSuQmCC
</value>
</data>
<data name="printPrev iewToolStripMen uItem.Image"
type="System.Dr awing.Bitmap, System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAY5JREFUOE+ d081L
AkEUAPD1T+hYhzo ERV77OHUo8JBBt+ 4RRkSQ4U0SunaJO kSRKQWZWCiF5kdr oa0WRAoRFXXoEEk WCUFY
Wbvrvnqz7NK6OxA NPIZh5v1m3uyOKZ K5AaamiaLICILAC DzPtDXXM+3mRlPt GnWMAK15g4fQabV BYDej
20QFdtJXVGBxg4X k8aWMRDhjJLh/TgUW1hPQ1T+ihmE ZgXieCghiFRBRIE PAFzkxBO4fSsByO fBsRkkE
4xkoFEv6Mla3szo AF2Jy+E2A0KMc/nyRINe3BS2yspXS Af4YR5Kfq/LUE1QJopxEU8qSP 6kD5nwxFUAE
A0E8hdM1rz0BXtD vhheHwMEnwKkkJ2 OPAJMuw+TUDB2QJ AneKzxgCRNnHwTB UJJd3ijYx8fowBc vwstr
BXIXdxBOZAmCu2J gssMxBGvOOmNA+d 5KP+sJw17qiJRjn 3bDwOAocF4LQMWt RTABf9W/hLWjFcpsA0Fc
tm76+6C+vJ+J4b4 WgmAp/0bMTXVg6ekFNrQM 3y3xMcC3lb+tAAA AAElFTkSuQmCC
</value>
</data>
<data name="cutToolSt ripMenuItem.Ima ge" type="System.Dr awing.Bitmap,
System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAYdJREFUOE+ t001L
QlEQBuB+TdCmRVE JRRIWtRAUlKsQhF mkpZQtIiWyAlMwP 5KkXS0shLqGFkgo FqWQmaRR2qIvU7F MwWhd
8JZXkFx0uVGzOcN h5jkDw6mr+++4SN 7B6fbju/uQecYm6a25+/Hdl2IJptWNmmJyL 4DwWZwZUJbtayT8
RxGqIV8oQaaaRfr xkTmw4z2G+WuKbC 6PYDgOkUSJp6ccc +AgdI4luwPbHh/UCxb0S0aZN5fHTm efMTVv
wfDEHIiBMegMpt8 BZUShNoGQTIKQGx A8TTIHMoUPGF1vE OvTWHTcgqeJQahN wLqVQiRRpIdS+Xc M2l4h
1t2DI3WAP7oGoSY E3kwSPQofljcqm/kxjK4SCH0OXSMet ItsUC26wZuOVptY hI0eEOuz1YI2gZn KBdpr
6iR9V2jkKOkBQpe iCryhFFr4eioft1 6iU7qNho4h1Dc00 QOqlRuwpSSa+Uaw uZXdByIZsPoUaOm WwrUf
owcOozlwZeto7ZX DuXvCfHV/+dGfqqrf44qgu28 AAAAASUVORK5CYI I=
</value>
</data>
<data name="copyToolS tripMenuItem.Im age" type="System.Dr awing.Bitmap,
System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAeJJREFUOE+ lk9FP
klEYxv1TSsecde0 f0FpZrTbbal7URV vZuuJCr7pq2WzLN Wy0iSHNwtIB9qG0 ltLSYRJpBomUgZP MGSyU
8SmJIOiv7zssCdr AzXd77s77e5/nnPdUVR20HBPfUC WNB4QsI176HB8IL/9iX2y1ubTMwx6ut z0nuLhc
GWIfCxT153Z26ep/g9Md4FJLZ2WIZdQ nAM4QSJ/BH5Z5aH6NNCljm0 hgdSV4MppAPxQXC q5kil31OTx7
DjLbOeSNNJFYUgB Kq31glfpmN76F9Q LEZHOJc73ubXQjM reln7Q+DdP/du0/QIsxhmNK5mjTMJ/m43mI
Qcmr5t5MZVlNpFi KrPM1vIbpVVQAOq SckF+ZekUX5UjTS +ouDFLb+CwPUPNu pbN7k7WmEDcMX3h gXSpy
IP/OsrCyhXtuA6M0g+ bc4wJATqaZ/x7DF4zg8f9g/OMibb355701kERr iHL5fojzd2aFjNI 0mjPdBUD9
6auUqlU/KwBZJV4skWUuvMm YV8b+Ls6jQQ81Df ryO3KtfUoA/p3810G37T3VJ3Tl ARdvukhldjANeem x
z2B8MS0mq80GyyS Hj98rD2jQOpXbtg rVNprRnO2h5lQX1 Sc7leYODh27W3nN 9/WZDnroDx0A5wwhd tmt
AAAAAElFTkSuQmC C
</value>
</data>
<data name="pasteTool StripMenuItem.I mage" type="System.Dr awing.Bitmap,
System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAlBJREFUOE+ 1k1lI
lGEUhn/owm6KFuqqq4LoJo oIqouMwixMM4zEj KyJGJUSlcnSITU1 RSe3SdPGyGVQc6t EUSkSIXFo13CM
FonUyGmy5p9xz+L p/z8ZbGjzpgMv5+a8 z1n4Pkn6H9HZnEH 7zVQayxKYF7+hMg +3ynKO4LBVMWa7x mBf
Nme1vuSl67hi0GN Mj/sVqBon5XqmnXVMO qoxF+sYH6kgJyWK F13xnD/tT7xmM7bOY4y0ri Y6bL8nRAWo
5mlnDUUZR+m2ZCO/L2C4T89bywmaSgI JD/WmKnEVT/MkIg/v8wTUVeTMAuQbGB LDSNaFoI8K5lxkE Dpt
IDEafyJCfciPXiM AIX7enoDqUgNTci 1TdhPjQ5nYn0dhr Vgu1Fu+jO7iRTwy egmzKp9tGz0BZlM GE/Yy
JgbSGH95irFnB5G bF5Nb3kqmqZELl2 uJN5iJSS0hPMFIW GyWJ6C0MJXRQSNj fVpGH/vjur+Jj7dXCLM7
pme+4XBOMjDsIDg ihYDj+jlISW4S8q s0XA99cXWsx9m2k sFySXRWo/RWp5Cppp3efpsw3 +2ysidIMwsp
zErgc88ZnO3rkFu WYq/3ov+6JMb+OvOdLy 6l8wcHvW9sWHre4 Rcag69i3rX3AN7b dyDlX4zD/iBCMS/h
U8NChioXYC2SiFZ 2Vsd2T3BVmaDA3E ZTh1VkVVs3rEW6l BwrHoj7yu6sVQ72 c+d7ltfCXH+nm5r WJ3MA
dY3cpJPKCwtEE7S bgJ1bBFm9trqzu9 vvspjgT3FIubZa8 C/N67P9regHTvjvLQ 3rR38AAAAASUVOR K5C
YII=
</value>
</data>
</root>
Nov 18 '06 #2
Wow - watching for wrapping.

I really hate NNTP :p

--
Dave Sexton

"Dave Sexton" <dave@jwa[remove.this]online.comwrote in message
news:u3******** ******@TK2MSFTN GP03.phx.gbl...
Hi,
>for example, let's say I do something like,

System.Diagnos tics.Process.St art("notepad.ex e","sample.txt" );

if the user does a SaveAs (in notepad), how can i capture the path that
the user selects?

I don't think that's possible, but why run notepad when you could very easily create the same
basic functionality (probably all functionality) yourself in your own application?

(I realize that you might not really need notepad, in particular, but the code here was fun to
write anyway :)

After my signature is the code for something very similar to Notepad, which I'll call Textpad
(already in use?).

Notes:

- My code targets the 2.0 framework and VS 2005
- I did not add any exception handling logic

- To make this work you must:

1. add a new Windows Form file to an existing VS 2005 project
2. name it, "Textpad.cs "
3. close the Form designer for Textpad, if it's open
4. replace the Textpad.cs content with the content from my Textpad.cs file (below).
5. replace the designer class content generated by VS (Textpad.design er.cs)
with the content from my Textpad.designe r.cs file (second file below).
6. replace the "Textpad.re sx" content with the content from my mine (last file below).
7. open the Textpad Form in the designer and make sure there are no designer errors.

--
Dave Sexton

{Textpad.cs file}

using System;
using System.Collecti ons.Generic;
using System.Componen tModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows. Forms;
using System.Drawing. Printing;
using System.IO;

namespace TextpadApp
{
public partial class Textpad : Form
{
#region Public Properties
public static readonly string SupportedFileTy peFilter = "Text Document (*.txt)|*.txt|A ll Files
(*.*)|*.*";
#endregion

#region Private / Protected
private string filePath;
private bool dirty;
#endregion

#region Constructors
public Textpad()
{
InitializeCompo nent();

Environment.Cur rentDirectory = Environment.Get FolderPath(Envi ronment.Special Folder.MyDocume nts);

ResetState();
}
#endregion

#region Methods
private void ResetState()
{
filePath = null;
txtInput.Text = null;
this.Text = "Textpad - New Document";
dirty = false;
}

private void SyncDocumentToF ile(string filePath)
{
this.filePath = filePath;
this.Text = "Textpad - " + Path.GetFileNam e(filePath);
dirty = false;
}

private void OpenDocument(st ring filePath)
{
txtInput.Text = File.ReadAllTex t(filePath, Encoding.ASCII) ;

// this method must be called AFTER txtInput is modified so that
// the TextChanged property doesn't set dirty to true again
SyncDocumentToF ile(filePath);
}

private void SaveDocument()
{
if (filePath != null)
SaveDocument(fi lePath);
else
UserSaveAs();
}

private void SaveDocument(st ring filePath)
{
File.WriteAllTe xt(filePath, txtInput.Text, Encoding.ASCII) ;

SyncDocumentToF ile(filePath);
}

private void UserSaveAs()
{
using (SaveFileDialog dialog = new SaveFileDialog( ))
{
dialog.CheckFil eExists = false;
dialog.CheckPat hExists = true;
dialog.AddExten sion = true;
dialog.CreatePr ompt = false;
dialog.DefaultE xt = "txt";
dialog.FileName = filePath ?? "NewDocument.tx t";
dialog.Filter = SupportedFileTy peFilter;
dialog.FilterIn dex = 0; // *.txt
dialog.Overwrit ePrompt = true;
dialog.Title = "Save Document";

if (dialog.ShowDia log(this) == DialogResult.OK )
SaveDocument(di alog.FileName);
}
}

private bool EnsureDocumentS aved()
{
if (dirty)
{
switch (MessageBox.Sho w(this,
string.Format(" There are unsaved changes to the current document.{0}{0} " +
"Do you want the changes saved before continuing?", Environment.New Line),
"Save Changes?", MessageBoxButto ns.YesNoCancel, MessageBoxIcon. Question,
MessageBoxDefau ltButton.Button 1))
{
case DialogResult.Ye s:
SaveDocument();
break;
case DialogResult.Ca ncel:
return false;
}
}

return true;
}

private void InitializePrint Document(PrintD ocument document)
{
if (txtInput.TextL ength == 0)
// nothing to print, so nothing to be initialized :)
return;

string text = txtInput.Text;

string[] lines = text.Split(new string[] { "\r\n" }, StringSplitOpti ons.None);

Font font = txtInput.Font;

StringFormat format = StringFormat.Ge nericDefault;
format.FormatFl ags |= StringFormatFla gs.MeasureTrail ingSpaces | StringFormatFla gs.LineLimit;

int page = 0;
int remainder = lines.Length;

document.BeginP rint += delegate(object sender, PrintEventArgs e)
// this event handler is required because when the print
// preview dialog attempts to print the document the state
// of the local variables will have been retained. reset them:
{
page = 0;
remainder = lines.Length;
};

document.PrintP age += delegate(object sender, PrintPageEventA rgs e)
{
int nPageChars, nPageLines;
SizeF size = e.Graphics.Meas ureString(text, font, e.MarginBounds. Size, format, out nPageChars,
out nPageLines);

string pageText = string.Join("\r \n", lines, page++ * nPageLines, Math.Min(remain der,
nPageLines));

RectangleF bounds = new RectangleF(e.Ma rginBounds.X, e.MarginBounds. Y, e.MarginBounds. Width,
e.MarginBounds. Height);

e.Graphics.Draw String(pageText , font, Brushes.Black, bounds, format);

remainder -= nPageLines;

e.HasMorePages = remainder 0;
};
}
#endregion

#region Event Handlers
private void exitToolStripMe nuItem_Click(ob ject sender, EventArgs e)
{
Application.Exi t();
}

private void printToolStripM enuItem_Click(o bject sender, EventArgs e)
{
PrintDocument document = new PrintDocument() ;
InitializePrint Document(docume nt);

using (PrintDialog dialog = new PrintDialog())
{
// This line will be useful in case InitializePrint Document
// is extended to configure page settings
dialog.Document = document;

if (dialog.ShowDia log(this) == DialogResult.OK )
document.Print( );
}
}

private void printPreviewToo lStripMenuItem_ Click(object sender, EventArgs e)
{
PrintDocument document = new PrintDocument() ;
InitializePrint Document(docume nt);

using (PrintPreviewDi alog dialog = new PrintPreviewDia log())
{
dialog.Document = document;
dialog.ShowDial og(this);
}
}

private void newToolStripMen uItem_Click(obj ect sender, EventArgs e)
{
if (!EnsureDocumen tSaved())
return;

ResetState();
}

private void openToolStripMe nuItem_Click(ob ject sender, EventArgs e)
{
if (!EnsureDocumen tSaved())
return;

using (OpenFileDialog dialog = new OpenFileDialog( ))
{
dialog.CheckFil eExists = true;
dialog.CheckPat hExists = true;
dialog.AddExten sion = true;
dialog.DefaultE xt = "txt";
dialog.Filter = SupportedFileTy peFilter;
dialog.FilterIn dex = 0; // *.txt
dialog.RestoreD irectory = false;
dialog.Title = "Open Document";

if (dialog.ShowDia log(this) == DialogResult.OK )
OpenDocument(di alog.FileName);
}
}

private void saveToolStripMe nuItem_Click(ob ject sender, EventArgs e)
{
SaveDocument();
}

private void saveAsToolStrip MenuItem_Click( object sender, EventArgs e)
{
UserSaveAs();
}

private void undoToolStripMe nuItem_Click(ob ject sender, EventArgs e)
{
txtInput.Undo() ;
}

private void cutToolStripMen uItem_Click(obj ect sender, EventArgs e)
{
txtInput.Cut();
}

private void copyToolStripMe nuItem_Click(ob ject sender, EventArgs e)
{
txtInput.Copy() ;
}

private void pasteToolStripM enuItem_Click(o bject sender, EventArgs e)
{
txtInput.Paste( );
}

private void selectAllToolSt ripMenuItem_Cli ck(object sender, EventArgs e)
{
txtInput.Select All();
}

private void aboutToolStripM enuItem_Click(o bject sender, EventArgs e)
{
MessageBox.Show (this, string.Format(" Textpad{0}{0}Wr itten by Dave Sexton (2006)",
Environment.New Line),
"About Textpad", MessageBoxButto ns.OK, MessageBoxIcon. Information);
}

private void txtInput_TextCh anged(object sender, EventArgs e)
{
if (!dirty)
this.Text += "*";

dirty = true;
}

protected override void OnFormClosing(F ormClosingEvent Args e)
{
if (!EnsureDocumen tSaved())
e.Cancel = true;

base.OnFormClos ing(e);
}
#endregion
}
}
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
{Textpad.design er.cs file}

namespace TextpadApp
{
partial class Textpad
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.Componen tModel.IContain er components = null;

/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing ">true if managed resources should be disposed; otherwise,
false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Disp ose();
}
base.Dispose(di sposing);
}

#region Windows Form Designer generated code

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeCompo nent()
{
System.Componen tModel.Componen tResourceManage r resources = new
System.Componen tModel.Componen tResourceManage r(typeof(Textpa d));
this.txtInput = new System.Windows. Forms.TextBox() ;
this.menuStrip1 = new System.Windows. Forms.MenuStrip ();
this.fileToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.newToolStr ipMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.openToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.toolStripS eparator = new System.Windows. Forms.ToolStrip Separator();
this.saveToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.saveAsTool StripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.toolStripS eparator1 = new System.Windows. Forms.ToolStrip Separator();
this.printToolS tripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.printPrevi ewToolStripMenu Item = new System.Windows. Forms.ToolStrip MenuItem();
this.toolStripS eparator2 = new System.Windows. Forms.ToolStrip Separator();
this.exitToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.editToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.undoToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.toolStripS eparator3 = new System.Windows. Forms.ToolStrip Separator();
this.cutToolStr ipMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.copyToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.pasteToolS tripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.toolStripS eparator4 = new System.Windows. Forms.ToolStrip Separator();
this.selectAllT oolStripMenuIte m = new System.Windows. Forms.ToolStrip MenuItem();
this.toolsToolS tripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.customizeT oolStripMenuIte m = new System.Windows. Forms.ToolStrip MenuItem();
this.optionsToo lStripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.helpToolSt ripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.contentsTo olStripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.indexToolS tripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.searchTool StripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.toolStripS eparator5 = new System.Windows. Forms.ToolStrip Separator();
this.aboutToolS tripMenuItem = new System.Windows. Forms.ToolStrip MenuItem();
this.menuStrip1 .SuspendLayout( );
this.SuspendLay out();
//
// txtInput
//
this.txtInput.A cceptsReturn = true;
this.txtInput.A cceptsTab = true;
this.txtInput.D ock = System.Windows. Forms.DockStyle .Fill;
this.txtInput.L ocation = new System.Drawing. Point(0, 24);
this.txtInput.M argin = new System.Windows. Forms.Padding(4 , 3, 4, 3);
this.txtInput.M axLength = 2147483647;
this.txtInput.M ultiline = true;
this.txtInput.N ame = "txtInput";
this.txtInput.S crollBars = System.Windows. Forms.ScrollBar s.Both;
this.txtInput.S ize = new System.Drawing. Size(613, 351);
this.txtInput.T abIndex = 0;
this.txtInput.W ordWrap = false;
this.txtInput.T extChanged += new System.EventHan dler(this.txtIn put_TextChanged );
//
// menuStrip1
//
this.menuStrip1 .Items.AddRange (new System.Windows. Forms.ToolStrip Item[] {
this.fileToolSt ripMenuItem,
this.editToolSt ripMenuItem,
this.toolsToolS tripMenuItem,
this.helpToolSt ripMenuItem});
this.menuStrip1 .Location = new System.Drawing. Point(0, 0);
this.menuStrip1 .Name = "menuStrip1 ";
this.menuStrip1 .Padding = new System.Windows. Forms.Padding(8 , 2, 0, 2);
this.menuStrip1 .Size = new System.Drawing. Size(613, 24);
this.menuStrip1 .TabIndex = 1;
this.menuStrip1 .Text = "menuStrip1 ";
//
// fileToolStripMe nuItem
//
this.fileToolSt ripMenuItem.Dro pDownItems.AddR ange(new System.Windows. Forms.ToolStrip Item[] {
this.newToolStr ipMenuItem,
this.openToolSt ripMenuItem,
this.toolStripS eparator,
this.saveToolSt ripMenuItem,
this.saveAsTool StripMenuItem,
this.toolStripS eparator1,
this.printToolS tripMenuItem,
this.printPrevi ewToolStripMenu Item,
this.toolStripS eparator2,
this.exitToolSt ripMenuItem});
this.fileToolSt ripMenuItem.Nam e = "fileToolStripM enuItem";
this.fileToolSt ripMenuItem.Siz e = new System.Drawing. Size(35, 20);
this.fileToolSt ripMenuItem.Tex t = "&File";
//
// newToolStripMen uItem
//
this.newToolStr ipMenuItem.Imag e = ((System.Drawin g.Image)
(resources.GetO bject("newToolS tripMenuItem.Im age")));
this.newToolStr ipMenuItem.Imag eTransparentCol or = System.Drawing. Color.Magenta;
this.newToolStr ipMenuItem.Name = "newToolStripMe nuItem";
this.newToolStr ipMenuItem.Shor tcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.N))) ;
this.newToolStr ipMenuItem.Size = new System.Drawing. Size(151, 22);
this.newToolStr ipMenuItem.Text = "&New";
this.newToolStr ipMenuItem.Clic k += new System.EventHan dler(this.newTo olStripMenuItem _Click);
//
// openToolStripMe nuItem
//
this.openToolSt ripMenuItem.Ima ge = ((System.Drawin g.Image)
(resources.GetO bject("openTool StripMenuItem.I mage")));
this.openToolSt ripMenuItem.Ima geTransparentCo lor = System.Drawing. Color.Magenta;
this.openToolSt ripMenuItem.Nam e = "openToolStripM enuItem";
this.openToolSt ripMenuItem.Sho rtcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.O))) ;
this.openToolSt ripMenuItem.Siz e = new System.Drawing. Size(151, 22);
this.openToolSt ripMenuItem.Tex t = "&Open";
this.openToolSt ripMenuItem.Cli ck += new System.EventHan dler(this.openT oolStripMenuIte m_Click);
//
// toolStripSepara tor
//
this.toolStripS eparator.Name = "toolStripSepar ator";
this.toolStripS eparator.Size = new System.Drawing. Size(148, 6);
//
// saveToolStripMe nuItem
//
this.saveToolSt ripMenuItem.Ima ge = ((System.Drawin g.Image)
(resources.GetO bject("saveTool StripMenuItem.I mage")));
this.saveToolSt ripMenuItem.Ima geTransparentCo lor = System.Drawing. Color.Magenta;
this.saveToolSt ripMenuItem.Nam e = "saveToolStripM enuItem";
this.saveToolSt ripMenuItem.Sho rtcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.S))) ;
this.saveToolSt ripMenuItem.Siz e = new System.Drawing. Size(151, 22);
this.saveToolSt ripMenuItem.Tex t = "&Save";
this.saveToolSt ripMenuItem.Cli ck += new System.EventHan dler(this.saveT oolStripMenuIte m_Click);
//
// saveAsToolStrip MenuItem
//
this.saveAsTool StripMenuItem.N ame = "saveAsToolStri pMenuItem";
this.saveAsTool StripMenuItem.S ize = new System.Drawing. Size(151, 22);
this.saveAsTool StripMenuItem.T ext = "Save &As";
this.saveAsTool StripMenuItem.C lick += new
System.EventHan dler(this.saveA sToolStripMenuI tem_Click);
//
// toolStripSepara tor1
//
this.toolStripS eparator1.Name = "toolStripSepar ator1";
this.toolStripS eparator1.Size = new System.Drawing. Size(148, 6);
//
// printToolStripM enuItem
//
this.printToolS tripMenuItem.Im age = ((System.Drawin g.Image)
(resources.GetO bject("printToo lStripMenuItem. Image")));
this.printToolS tripMenuItem.Im ageTransparentC olor = System.Drawing. Color.Magenta;
this.printToolS tripMenuItem.Na me = "printToolStrip MenuItem";
this.printToolS tripMenuItem.Sh ortcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.P))) ;
this.printToolS tripMenuItem.Si ze = new System.Drawing. Size(151, 22);
this.printToolS tripMenuItem.Te xt = "&Print";
this.printToolS tripMenuItem.Cl ick += new System.EventHan dler(this.print ToolStripMenuIt em_Click);
//
// printPreviewToo lStripMenuItem
//
this.printPrevi ewToolStripMenu Item.Image = ((System.Drawin g.Image)
(resources.GetO bject("printPre viewToolStripMe nuItem.Image")) );
this.printPrevi ewToolStripMenu Item.ImageTrans parentColor = System.Drawing. Color.Magenta;
this.printPrevi ewToolStripMenu Item.Name = "printPreviewTo olStripMenuItem ";
this.printPrevi ewToolStripMenu Item.Size = new System.Drawing. Size(151, 22);
this.printPrevi ewToolStripMenu Item.Text = "Print Pre&view";
this.printPrevi ewToolStripMenu Item.Click += new
System.EventHan dler(this.print PreviewToolStri pMenuItem_Click );
//
// toolStripSepara tor2
//
this.toolStripS eparator2.Name = "toolStripSepar ator2";
this.toolStripS eparator2.Size = new System.Drawing. Size(148, 6);
//
// exitToolStripMe nuItem
//
this.exitToolSt ripMenuItem.Nam e = "exitToolStripM enuItem";
this.exitToolSt ripMenuItem.Siz e = new System.Drawing. Size(151, 22);
this.exitToolSt ripMenuItem.Tex t = "E&xit";
this.exitToolSt ripMenuItem.Cli ck += new System.EventHan dler(this.exitT oolStripMenuIte m_Click);
//
// editToolStripMe nuItem
//
this.editToolSt ripMenuItem.Dro pDownItems.AddR ange(new System.Windows. Forms.ToolStrip Item[] {
this.undoToolSt ripMenuItem,
this.toolStripS eparator3,
this.cutToolStr ipMenuItem,
this.copyToolSt ripMenuItem,
this.pasteToolS tripMenuItem,
this.toolStripS eparator4,
this.selectAllT oolStripMenuIte m});
this.editToolSt ripMenuItem.Nam e = "editToolStripM enuItem";
this.editToolSt ripMenuItem.Siz e = new System.Drawing. Size(37, 20);
this.editToolSt ripMenuItem.Tex t = "&Edit";
//
// undoToolStripMe nuItem
//
this.undoToolSt ripMenuItem.Nam e = "undoToolStripM enuItem";
this.undoToolSt ripMenuItem.Sho rtcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.Z))) ;
this.undoToolSt ripMenuItem.Siz e = new System.Drawing. Size(152, 22);
this.undoToolSt ripMenuItem.Tex t = "&Undo";
this.undoToolSt ripMenuItem.Cli ck += new System.EventHan dler(this.undoT oolStripMenuIte m_Click);
//
// toolStripSepara tor3
//
this.toolStripS eparator3.Name = "toolStripSepar ator3";
this.toolStripS eparator3.Size = new System.Drawing. Size(149, 6);
//
// cutToolStripMen uItem
//
this.cutToolStr ipMenuItem.Imag e = ((System.Drawin g.Image)
(resources.GetO bject("cutToolS tripMenuItem.Im age")));
this.cutToolStr ipMenuItem.Imag eTransparentCol or = System.Drawing. Color.Magenta;
this.cutToolStr ipMenuItem.Name = "cutToolStripMe nuItem";
this.cutToolStr ipMenuItem.Shor tcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.X))) ;
this.cutToolStr ipMenuItem.Size = new System.Drawing. Size(152, 22);
this.cutToolStr ipMenuItem.Text = "Cu&t";
this.cutToolStr ipMenuItem.Clic k += new System.EventHan dler(this.cutTo olStripMenuItem _Click);
//
// copyToolStripMe nuItem
//
this.copyToolSt ripMenuItem.Ima ge = ((System.Drawin g.Image)
(resources.GetO bject("copyTool StripMenuItem.I mage")));
this.copyToolSt ripMenuItem.Ima geTransparentCo lor = System.Drawing. Color.Magenta;
this.copyToolSt ripMenuItem.Nam e = "copyToolStripM enuItem";
this.copyToolSt ripMenuItem.Sho rtcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.C))) ;
this.copyToolSt ripMenuItem.Siz e = new System.Drawing. Size(152, 22);
this.copyToolSt ripMenuItem.Tex t = "&Copy";
this.copyToolSt ripMenuItem.Cli ck += new System.EventHan dler(this.copyT oolStripMenuIte m_Click);
//
// pasteToolStripM enuItem
//
this.pasteToolS tripMenuItem.Im age = ((System.Drawin g.Image)
(resources.GetO bject("pasteToo lStripMenuItem. Image")));
this.pasteToolS tripMenuItem.Im ageTransparentC olor = System.Drawing. Color.Magenta;
this.pasteToolS tripMenuItem.Na me = "pasteToolStrip MenuItem";
this.pasteToolS tripMenuItem.Sh ortcutKeys = ((System.Window s.Forms.Keys)
((System.Window s.Forms.Keys.Co ntrol | System.Windows. Forms.Keys.V))) ;
this.pasteToolS tripMenuItem.Si ze = new System.Drawing. Size(152, 22);
this.pasteToolS tripMenuItem.Te xt = "&Paste";
this.pasteToolS tripMenuItem.Cl ick += new System.EventHan dler(this.paste ToolStripMenuIt em_Click);
//
// toolStripSepara tor4
//
this.toolStripS eparator4.Name = "toolStripSepar ator4";
this.toolStripS eparator4.Size = new System.Drawing. Size(149, 6);
//
// selectAllToolSt ripMenuItem
//
this.selectAllT oolStripMenuIte m.Name = "selectAllToolS tripMenuItem";
this.selectAllT oolStripMenuIte m.Size = new System.Drawing. Size(152, 22);
this.selectAllT oolStripMenuIte m.Text = "Select &All";
this.selectAllT oolStripMenuIte m.Click += new
System.EventHan dler(this.selec tAllToolStripMe nuItem_Click);
//
// toolsToolStripM enuItem
//
this.toolsToolS tripMenuItem.Dr opDownItems.Add Range(new System.Windows. Forms.ToolStrip Item[] {
this.customizeT oolStripMenuIte m,
this.optionsToo lStripMenuItem} );
this.toolsToolS tripMenuItem.Na me = "toolsToolStrip MenuItem";
this.toolsToolS tripMenuItem.Si ze = new System.Drawing. Size(44, 20);
this.toolsToolS tripMenuItem.Te xt = "&Tools";
this.toolsToolS tripMenuItem.Vi sible = false;
//
// customizeToolSt ripMenuItem
//
this.customizeT oolStripMenuIte m.Name = "customizeToolS tripMenuItem";
this.customizeT oolStripMenuIte m.Size = new System.Drawing. Size(134, 22);
this.customizeT oolStripMenuIte m.Text = "&Customize ";
//
// optionsToolStri pMenuItem
//
this.optionsToo lStripMenuItem. Name = "optionsToolStr ipMenuItem";
this.optionsToo lStripMenuItem. Size = new System.Drawing. Size(134, 22);
this.optionsToo lStripMenuItem. Text = "&Options";
//
// helpToolStripMe nuItem
//
this.helpToolSt ripMenuItem.Dro pDownItems.AddR ange(new System.Windows. Forms.ToolStrip Item[] {
this.contentsTo olStripMenuItem ,
this.indexToolS tripMenuItem,
this.searchTool StripMenuItem,
this.toolStripS eparator5,
this.aboutToolS tripMenuItem});
this.helpToolSt ripMenuItem.Nam e = "helpToolStripM enuItem";
this.helpToolSt ripMenuItem.Siz e = new System.Drawing. Size(40, 20);
this.helpToolSt ripMenuItem.Tex t = "&Help";
//
// contentsToolStr ipMenuItem
//
this.contentsTo olStripMenuItem .Name = "contentsToolSt ripMenuItem";
this.contentsTo olStripMenuItem .Size = new System.Drawing. Size(152, 22);
this.contentsTo olStripMenuItem .Text = "&Contents" ;
this.contentsTo olStripMenuItem .Visible = false;
//
// indexToolStripM enuItem
//
this.indexToolS tripMenuItem.Na me = "indexToolStrip MenuItem";
this.indexToolS tripMenuItem.Si ze = new System.Drawing. Size(152, 22);
this.indexToolS tripMenuItem.Te xt = "&Index";
this.indexToolS tripMenuItem.Vi sible = false;
//
// searchToolStrip MenuItem
//
this.searchTool StripMenuItem.N ame = "searchToolStri pMenuItem";
this.searchTool StripMenuItem.S ize = new System.Drawing. Size(152, 22);
this.searchTool StripMenuItem.T ext = "&Search";
this.searchTool StripMenuItem.V isible = false;
//
// toolStripSepara tor5
//
this.toolStripS eparator5.Name = "toolStripSepar ator5";
this.toolStripS eparator5.Size = new System.Drawing. Size(149, 6);
this.toolStripS eparator5.Visib le = false;
//
// aboutToolStripM enuItem
//
this.aboutToolS tripMenuItem.Na me = "aboutToolStrip MenuItem";
this.aboutToolS tripMenuItem.Si ze = new System.Drawing. Size(152, 22);
this.aboutToolS tripMenuItem.Te xt = "&About..." ;
this.aboutToolS tripMenuItem.Cl ick += new System.EventHan dler(this.about ToolStripMenuIt em_Click);
//
// Textpad
//
this.AutoScaleD imensions = new System.Drawing. SizeF(8F, 13F);
this.AutoScaleM ode = System.Windows. Forms.AutoScale Mode.Font;
this.ClientSize = new System.Drawing. Size(613, 375);
this.Controls.A dd(this.txtInpu t);
this.Controls.A dd(this.menuStr ip1);
this.DoubleBuff ered = true;
this.Font = new System.Drawing. Font("Lucida Console", 9.75F, System.Drawing. FontStyle.Regul ar,
System.Drawing. GraphicsUnit.Po int, ((byte) (0)));
this.MainMenuSt rip = this.menuStrip1 ;
this.Margin = new System.Windows. Forms.Padding(4 , 3, 4, 3);
this.Name = "Textpad";
this.Text = "Textpad";
this.menuStrip1 .ResumeLayout(f alse);
this.menuStrip1 .PerformLayout( );
this.ResumeLayo ut(false);
this.PerformLay out();

}

#endregion

private System.Windows. Forms.TextBox txtInput;
private System.Windows. Forms.MenuStrip menuStrip1;
private System.Windows. Forms.ToolStrip MenuItem fileToolStripMe nuItem;
private System.Windows. Forms.ToolStrip MenuItem newToolStripMen uItem;
private System.Windows. Forms.ToolStrip MenuItem openToolStripMe nuItem;
private System.Windows. Forms.ToolStrip Separator toolStripSepara tor;
private System.Windows. Forms.ToolStrip MenuItem saveToolStripMe nuItem;
private System.Windows. Forms.ToolStrip MenuItem saveAsToolStrip MenuItem;
private System.Windows. Forms.ToolStrip Separator toolStripSepara tor1;
private System.Windows. Forms.ToolStrip MenuItem printToolStripM enuItem;
private System.Windows. Forms.ToolStrip MenuItem printPreviewToo lStripMenuItem;
private System.Windows. Forms.ToolStrip Separator toolStripSepara tor2;
private System.Windows. Forms.ToolStrip MenuItem exitToolStripMe nuItem;
private System.Windows. Forms.ToolStrip MenuItem editToolStripMe nuItem;
private System.Windows. Forms.ToolStrip MenuItem undoToolStripMe nuItem;
private System.Windows. Forms.ToolStrip Separator toolStripSepara tor3;
private System.Windows. Forms.ToolStrip MenuItem cutToolStripMen uItem;
private System.Windows. Forms.ToolStrip MenuItem copyToolStripMe nuItem;
private System.Windows. Forms.ToolStrip MenuItem pasteToolStripM enuItem;
private System.Windows. Forms.ToolStrip Separator toolStripSepara tor4;
private System.Windows. Forms.ToolStrip MenuItem selectAllToolSt ripMenuItem;
private System.Windows. Forms.ToolStrip MenuItem toolsToolStripM enuItem;
private System.Windows. Forms.ToolStrip MenuItem customizeToolSt ripMenuItem;
private System.Windows. Forms.ToolStrip MenuItem optionsToolStri pMenuItem;
private System.Windows. Forms.ToolStrip MenuItem helpToolStripMe nuItem;
private System.Windows. Forms.ToolStrip MenuItem contentsToolStr ipMenuItem;
private System.Windows. Forms.ToolStrip MenuItem indexToolStripM enuItem;
private System.Windows. Forms.ToolStrip MenuItem searchToolStrip MenuItem;
private System.Windows. Forms.ToolStrip Separator toolStripSepara tor5;
private System.Windows. Forms.ToolStrip MenuItem aboutToolStripM enuItem;
}
}
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
{Textpad.resx file}

<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

Version 2.0

The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.

Example:

... ado.net/XML headers & schema ...
<resheader name="resmimety pe">text/microsoft-resx</resheader>
<resheader name="version"> 2.0</resheader>
<resheader name="reader">S ystem.Resources .ResXResourceRe ader, System.Windows. Forms,
...</resheader>
<resheader name="writer">S ystem.Resources .ResXResourceWr iter, System.Windows. Forms,
...</resheader>
<data name="Name1"><v alue>this is my long string</value><comment> this is a
comment</comment></data>
<data name="Color1" type="System.Dr awing.Color, System.Drawing" >Blue</data>
<data name="Bitmap1" mimetype="appli cation/x-microsoft.net.o bject.binary.ba se64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Dr awing.Icon, System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework
object]</value>
<comment>This is a comment</comment>
</data>

There are any number of "resheader" rows that contain simple
name/value pairs.

Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.

The mimetype is used for serialized objects, and tells the
ResXResourceRea der how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:

Note - application/x-microsoft.net.o bject.binary.ba se64 is the format
that the ResXResourceWri ter will generate, however the reader can
read any of the formats listed below.

mimetype: application/x-microsoft.net.o bject.binary.ba se64
value : The object must be serialized with
: System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er
: and then encoded with base64 encoding.

mimetype: application/x-microsoft.net.o bject.soap.base 64
value : The object must be serialized with
: System.Runtime. Serialization.F ormatters.Soap. SoapFormatter
: and then encoded with base64 encoding.

mimetype: application/x-microsoft.net.o bject.bytearray .base64
value : The object must be serialized into a byte array
: using a System.Componen tModel.TypeConv erter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:msdata="u rn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http ://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSe t="true">
<xsd:complexTyp e>
<xsd:choice maxOccurs="unbo unded">
<xsd:element name="metadata" >
<xsd:complexTyp e>
<xsd:sequence >
<xsd:element name="value" type="xsd:strin g" minOccurs="0" />
</xsd:sequence>
<xsd:attribut e name="name" use="required" type="xsd:strin g" />
<xsd:attribut e name="type" type="xsd:strin g" />
<xsd:attribut e name="mimetype" type="xsd:strin g" />
<xsd:attribut e ref="xml:space" />
</xsd:complexType >
</xsd:element>
<xsd:element name="assembly" >
<xsd:complexTyp e>
<xsd:attribut e name="alias" type="xsd:strin g" />
<xsd:attribut e name="name" type="xsd:strin g" />
</xsd:complexType >
</xsd:element>
<xsd:element name="data">
<xsd:complexTyp e>
<xsd:sequence >
<xsd:element name="value" type="xsd:strin g" minOccurs="0" msdata:Ordinal= "1" />
<xsd:element name="comment" type="xsd:strin g" minOccurs="0" msdata:Ordinal= "2" />
</xsd:sequence>
<xsd:attribut e name="name" type="xsd:strin g" use="required" msdata:Ordinal= "1" />
<xsd:attribut e name="type" type="xsd:strin g" msdata:Ordinal= "3" />
<xsd:attribut e name="mimetype" type="xsd:strin g" msdata:Ordinal= "4" />
<xsd:attribut e ref="xml:space" />
</xsd:complexType >
</xsd:element>
<xsd:element name="resheader ">
<xsd:complexTyp e>
<xsd:sequence >
<xsd:element name="value" type="xsd:strin g" minOccurs="0" msdata:Ordinal= "1" />
</xsd:sequence>
<xsd:attribut e name="name" type="xsd:strin g" use="required" />
</xsd:complexType >
</xsd:element>
</xsd:choice>
</xsd:complexType >
</xsd:element>
</xsd:schema>
<resheader name="resmimety pe">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.R esources.ResXRe sourceReader, System.Windows. Forms, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9</value>
</resheader>
<resheader name="writer">
<value>System.R esources.ResXRe sourceWriter, System.Windows. Forms, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9</value>
</resheader>
<metadata name="menuStrip 1.TrayLocation" type="System.Dr awing.Point, System.Drawing,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a">
<value>17, 17</value>
</metadata>
<assembly alias="System.D rawing" name="System.Dr awing, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a" />
<data name="newToolSt ripMenuItem.Ima ge" type="System.Dr awing.Bitmap, System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAQ9JREFUOE+ t09lq
wkAUBmBfyr5DfY3 2jaReSOmFCyKCgk KLFrVUBZeKiEbsh qRuaNw1xiXmLxMJ BJ0Zc+GBw9zMfDP nHMZm
u1ZE35s4zXCqjmC 8Al+sgHLjD9y7yG FWPIbecOO45yORt MAEHnxxJHL1IyKI 9JeEXqtMwOl50Q8 bSS0l
8PzBBPbqAQQxICr gjeapgKZpkJUdBm NZB+y3d/QSnsIZKrDdqZjMF Yj9OR9wB1NngHrQ sJC36EkrfIkT
PuDyJ84AZbOHNF2 j1Z2h9i3xAVKfOU jjZssN2oMFmq0xS kLfOmBu3E97iurn ENlKxzpgbpzwO0K h1kOy
KFoDjHmzVuYYjRm TDZfyWh9Yd/4B2Mz2w1z7EGUAA AAASUVORK5CYII=
</value>
</data>
<data name="openToolS tripMenuItem.Im age" type="System.Dr awing.Bitmap, System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAlpJREFUOE+ tk21I
k1EYhif0oyA0sqI QCix/+GcQFFH9CCmiUBT LLEjShJofVBgL2f xoU9Pp5ubUlS5rU 9f8rCyjsA+pUCRC
TR1ppmVFUSlmhq7 8unrnQF1KGHTg/nEOz30993PO+7qJ FrmUeiv2n+Mij+X LRLLYULdF2pxlEV IDcw0p
AsyxD5fmI/rQ94pqi26eOlsfu Zj+7BgSm01QdA4i h7m73Yx9qGpavwa tjPebqCzOprPt8Y KQgzFagqL0
BEjyEFWVaBkdLHM xT34uYNwWR9nVTE oL0zHlp2DMSeaSR k6eKt4VWm5WM/rVPNN5SjDTLQebZ EHNA1wr
UvHjk3E6tsNcV62 e1r3KLGqtKm6Wpl NpSsVqVFJsOM8Vf SKFWjkGtcyZptSY zvC7XByx3zQoqCn TMvlG
CX1prnornPUmQJc UXsbSVhGK5bIOkc mQyveeTHiv4VZ5N k33Nc6iuSO8CIfm ECYa/bE/8ON1iRipJNh5
F0V6Bd86lfQ1JlF j1TDVq4COKCegLV IwHmGiKRB7/V6G7+5koHozymgf YRy5E1CgTWKgXcZ 1i5qWp0KS
rjgBcAJawph6Fsz Yk/2M1O1isGYLX8p9a b6wgqP+3rMvYciS 01GfzA1LFvQkQ6s Q9/khxhoCGHnox1Dt
NvorxXw0b8Km8UQ h2cip6GOzgNyMeK qKM7HdjqFZJ5pRk 2YJ9aql3EnxoCJx NaZ4Ly6e3UDY3O6 OEXRp
59ApTpIhiyDh9GH ORAZyPHQPB/ZtZ/cOMVvFPvh6e7F+3 SrWrHRnraf7Xz/xf/rJ/kvxb84I3U1y+9/W
AAAAAElFTkSuQmC C
</value>
</data>
<data name="saveToolS tripMenuItem.Im age" type="System.Dr awing.Bitmap, System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAixJREFUOE+ tk91L
k3EUx/cvdN9N0EW3NTWGa 7EaPOUcyqphWBG9 PZEv5dJlmqhYmUY tXyBb4dJJy+kknF T4BqZIjaFMJUsz
V7TEoabYRDD49ju/6Pm1Mi+iH5zLz+c 855zvo1L9j/fsaRRUvvZltHmX8 Ni9gMaGCO47ZlBb 8wn22yHc
KJ9CackECgteIy9 3FBfOB6H0JrC3B6 ipXsVGb2V1Dca0X hxOe8JLEXhbF7mg suLLX3mCIwsr2G1 +DrVa
huWQRwjcj+a5oLT k87qCn/D78CLiTD4UXJ7GA XOTEDjrZ7ngku3d H4Jf4ZHJCLZJXlh zxpGa4hSCurth
LsjOGo0R/A4PBsPYrHdDlgMw mRxCUF31kQvkMwF FsB7c4/+ATYkNOHL0BZKSa oXgZuU0urvATgkc P/kK
lmMDfNu0MJqZPps 6/4D7cNDSCUmyC8HV skl0+MAyADS5vrG 7f0X59Tm+VFoYzZ yZEVTg5NR2GAwVQ nCl
cByeZuChc40FJwp jek5MmU/YkH6uiHdOTmHwfg/0+jIhsOWNMRiouh PlnUnAQoI4rYSht 7MYm5qDnHsN
e41tHNbucUGnKxI CiqXjHpTPJgHBZ/Nv4U1oHqGZJVwst iNe72JwI+J3PYA2 MV8IMjOG2dzLfOa tBg+2
7JDQ0tEPX9cguvv 8GHg5hH0mC9S6ei QweLumDhqNVQgo0 6dP9fN4UsIoJHRn OhVtmxZGM1NXKoJ 3JmTH
Cv71r/4OTrQ4xWMwWlcAA AAASUVORK5CYII=
</value>
</data>
<data name="printTool StripMenuItem.I mage" type="System.Dr awing.Bitmap, System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAi1JREFUOE+ 1k/9P
UlEYxv2nWK2tVlt tGmpltrCcEQ1XUj SMaUHJNLIpNcnCr agplBvUoC/okJhZLG92ySUpU8 RNICdIhAio
EF+e7r1UZMDW1jr b+8t7z/N83vucc8rK/sdyeYIwvpopWYbR aZTk0uIx0o0/V/JbGt7lVTwxT6CKK ylt
oLd8xGYihS/hKGz2WaaeWUnoTA TsMz7UCztx9Ex7c YN3jkUQU4tb4DR5 LZaAcyEAg4VE5Yl LMFmJQoNQ
JA61gUA6k4XPH9p CN9s+gZz2oq5Jjl q+DDfUz3Fba86bO GY9jHiUdDF0mvqT 7A/F4fKEcE9nZf5d1j OI
B4ZxVJ2U5gyc8z7 0akegMX3AXb0ND1 +8R6/GgvZbeog61OA2K3 CA2lxR34JjZ69B2 T8EsVyN/Q0XcwY3
B14iGk8UpE43Uuk MNqhA6QyC4Q0src Qg7dagsbWHmuDHS cj7jDC9nsJTqx0a 4xjuaIfRqXoMSXc/hG0q
8C4owGnqwEGeFOX HxThH9eoEV7G7Vp iboE2pK0qnm9H1J Lz+NUzOBfHWEcAQ sQSuqAuVDa1gVZz KGUgU
jwoMqAzxNZbC3Od 1jDvDYPdth+7NCp P8Yf4V7KoR5A1ar g8gmQIoGMLxLJYj WSwEMphwb2J4MoZ B2yqU
LBZUIxHGYB9HlBf TE4jl9+GmBPTHv6 lfo//+GGoaZajmXQabum Xl1HHt5TRjz5Hz2 HlIgB3Vp7GNzWeo
RcX/+pq/AwHYL0leVl8fAAA AAElFTkSuQmCC
</value>
</data>
<data name="printPrev iewToolStripMen uItem.Image" type="System.Dr awing.Bitmap, System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAY5JREFUOE+ d081L
AkEUAPD1T+hYhzo ERV77OHUo8JBBt+ 4RRkSQ4U0SunaJO kSRKQWZWCiF5kdr oa0WRAoRFXXoEEk WCUFY
Wbvrvnqz7NK6OxA NPIZh5v1m3uyOKZ K5AaamiaLICILAC DzPtDXXM+3mRlPt GnWMAK15g4fQabV BYDej
20QFdtJXVGBxg4X k8aWMRDhjJLh/TgUW1hPQ1T+ihmE ZgXieCghiFRBRIE PAFzkxBO4fSsByO fBsRkkE
4xkoFEv6Mla3szo AF2Jy+E2A0KMc/nyRINe3BS2yspXS Af4YR5Kfq/LUE1QJopxEU8qSP 6kD5nwxFUAE
A0E8hdM1rz0BXtD vhheHwMEnwKkkJ2 OPAJMuw+TUDB2QJ AneKzxgCRNnHwTB UJJd3ijYx8fowBc vwstr
BXIXdxBOZAmCu2J gssMxBGvOOmNA+d 5KP+sJw17qiJRjn 3bDwOAocF4LQMWt RTABf9W/hLWjFcpsA0Fc
tm76+6C+vJ+J4b4 WgmAp/0bMTXVg6ekFNrQM 3y3xMcC3lb+tAAA AAElFTkSuQmCC
</value>
</data>
<data name="cutToolSt ripMenuItem.Ima ge" type="System.Dr awing.Bitmap, System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAYdJREFUOE+ t001L
QlEQBuB+TdCmRVE JRRIWtRAUlKsQhF mkpZQtIiWyAlMwP 5KkXS0shLqGFkgo FqWQmaRR2qIvU7F MwWhd
8JZXkFx0uVGzOcN h5jkDw6mr+++4SN 7B6fbju/uQecYm6a25+/Hdl2IJptWNmmJyL 4DwWZwZUJbtayT8
RxGqIV8oQaaaRfr xkTmw4z2G+WuKbC 6PYDgOkUSJp6ccc +AgdI4luwPbHh/UCxb0S0aZN5fHTm efMTVv
wfDEHIiBMegMpt8 BZUShNoGQTIKQGx A8TTIHMoUPGF1vE OvTWHTcgqeJQahN wLqVQiRRpIdS+Xc M2l4h
1t2DI3WAP7oGoSY E3kwSPQofljcqm/kxjK4SCH0OXSMet ItsUC26wZuOVptY hI0eEOuz1YI2gZn KBdpr
6iR9V2jkKOkBQpe iCryhFFr4eioft1 6iU7qNho4h1Dc00 QOqlRuwpSSa+Uaw uZXdByIZsPoUaOm WwrUf
owcOozlwZeto7ZX DuXvCfHV/+dGfqqrf44qgu28 AAAAASUVORK5CYI I=
</value>
</data>
<data name="copyToolS tripMenuItem.Im age" type="System.Dr awing.Bitmap, System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAeJJREFUOE+ lk9FP
klEYxv1TSsecde0 f0FpZrTbbal7URV vZuuJCr7pq2WzLN Wy0iSHNwtIB9qG0 ltLSYRJpBomUgZP MGSyU
8SmJIOiv7zssCdr AzXd77s77e5/nnPdUVR20HBPfUC WNB4QsI176HB8IL/9iX2y1ubTMwx6ut z0nuLhc
GWIfCxT153Z26ep/g9Md4FJLZ2WIZdQ nAM4QSJ/BH5Z5aH6NNCljm0 hgdSV4MppAPxQXC q5kil31OTx7
DjLbOeSNNJFYUgB Kq31glfpmN76F9Q LEZHOJc73ubXQjM reln7Q+DdP/du0/QIsxhmNK5mjTMJ/m43mI
Qcmr5t5MZVlNpFi KrPM1vIbpVVQAOq SckF+ZekUX5UjTS +ouDFLb+CwPUPNu pbN7k7WmEDcMX3h gXSpy
IP/OsrCyhXtuA6M0g+ bc4wJATqaZ/x7DF4zg8f9g/OMibb355701kERr iHL5fojzd2aFjNI 0mjPdBUD9
6auUqlU/KwBZJV4skWUuvMm YV8b+Ls6jQQ81Df ryO3KtfUoA/p3810G37T3VJ3Tl ARdvukhldjANeem x
z2B8MS0mq80GyyS Hj98rD2jQOpXbtg rVNprRnO2h5lQX1 Sc7leYODh27W3nN 9/WZDnroDx0A5wwhd tmt
AAAAAElFTkSuQmC C
</value>
</data>
<data name="pasteTool StripMenuItem.I mage" type="System.Dr awing.Bitmap, System.Drawing"
mimetype="appli cation/x-microsoft.net.o bject.bytearray .base64">
<value>
iVBORw0KGgoAAAA NSUhEUgAAABAAAA AQCAYAAAAf8/9hAAAAAXNSR0IAr s4c6QAAAARnQU1B AACxjwv8
YQUAAAAgY0hSTQA AeiYAAICEAAD6AA AAgOgAAHUwAADqY AAAOpgAABdwnLpR PAAAAlBJREFUOE+ 1k1lI
lGEUhn/owm6KFuqqq4LoJo oIqouMwixMM4zEj KyJGJUSlcnSITU1 RSe3SdPGyGVQc6t EUSkSIXFo13CM
FonUyGmy5p9xz+L p/z8ZbGjzpgMv5+a8 z1n4Pkn6H9HZnEH 7zVQayxKYF7+hMg +3ynKO4LBVMWa7x mBf
Nme1vuSl67hi0GN Mj/sVqBon5XqmnXVMO qoxF+sYH6kgJyWK F13xnD/tT7xmM7bOY4y0ri Y6bL8nRAWo
5mlnDUUZR+m2ZCO/L2C4T89bywmaSgI JD/WmKnEVT/MkIg/v8wTUVeTMAuQbGB LDSNaFoI8K5lxkE Dpt
IDEafyJCfciPXiM AIX7enoDqUgNTci 1TdhPjQ5nYn0dhr Vgu1Fu+jO7iRTwy egmzKp9tGz0BZlM GE/Yy
JgbSGH95irFnB5G bF5Nb3kqmqZELl2 uJN5iJSS0hPMFIW GyWJ6C0MJXRQSNj fVpGH/vjur+Jj7dXCLM7
pme+4XBOMjDsIDg ihYDj+jlISW4S8q s0XA99cXWsx9m2k sFySXRWo/RWp5Cppp3efpsw3 +2ysidIMwsp
zErgc88ZnO3rkFu WYq/3ov+6JMb+OvOdLy 6l8wcHvW9sWHre4 Rcag69i3rX3AN7b dyDlX4zD/iBCMS/h
U8NChioXYC2SiFZ 2Vsd2T3BVmaDA3E ZTh1VkVVs3rEW6l BwrHoj7yu6sVQ72 c+d7ltfCXH+nm5r WJ3MA
dY3cpJPKCwtEE7S bgJ1bBFm9trqzu9 vvspjgT3FIubZa8 C/N67P9regHTvjvLQ 3rR38AAAAASUVOR K5C
YII=
</value>
</data>
</root>

Nov 18 '06 #3
Dave Sexton wrote:
Wow - watching for wrapping.

I really hate NNTP :p
<Major Snippage>

the notepad piece was just an example. thanks for your input dave...

Nov 19 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1113
by: matt dittman | last post by:
I have created a windows service that reads emails from a drop directory and moves them to the appropriate mail folder every 15 seconds. I can move, rename and delete the files as needed, up until the CDO.DropDirectory.GetMessages() method is called. At this point, the files are locked until I shut down the service. After processing and...
5
3161
by: Vinay | last post by:
Hi I have a corrupt word file. I am able to open it with the code given below tr Dim pInfo As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo( pInfo.UseShellExecute = Tru pInfo.FileName = "c:\corrupt.doc Dim p As Process = System.Diagnostics.Process.Start(pInfo Catch ex As Exceptio MsgBox(ex.ToString End Tr
6
1376
by: Mike Fellows | last post by:
when i click a button i want to open the machines default web browser to a specific page how do i do this? Regards Michael Fellows
1
1383
by: jcrouse | last post by:
This is sort of a revisited item from about two months ago (don't get mad Cor) with additional code. I am creating a batch file called CreateMameGames.bat. I am then running that batch file to create a text file called MameGames.cfg. Later on in my code I parse through the file and pull out information. This all worked great but the file is...
1
3120
by: Atara | last post by:
My application starts with: Module mmcMain Public Sub Main() Debug.WriteLine("Main begin") Dim splashForm As New mcDlgs.cmcDlgSplash2 splashForm.Show() ....
13
39858
by: Chris Johnson | last post by:
I have what seems to be such a simple thing yet I cannot figure out how to do it. I am using a streamwriter to build a text file. At the end of the process I want to open that same text file in notepad so the user can see what was built. I cannot for the life of me figure out how to get the text file to open up in notepad on the screen....
1
3719
by: lactaseman | last post by:
While I know this is not the correct venue... I realize this is of little to no importance to most out there... however, if I had found this in my initial searches, I would have used this. So, as an alternative to the mentalis.org's IniReader, I submit the following files to the web news group DBs...: ...
6
20367
by: eric.goforth | last post by:
Hello, I have a simple batch file that I'm trying to call from a VB.NET application: @ECHO OFF IF (%1)==() GOTO END DIR %1 > MYDIR.TXT :END @ECHO ON
7
11655
by: Abhi | last post by:
Hi, I want to open a File with unknown Extension using C#. What i want is i do System.Diagnostics.Process.Start("FileName"); Now if File is associated with any program then the File with open with that Application, this is working fine. My requirement says, if file extension is unknown or not associated with any application then, it should...
0
7639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8074
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7926
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5465
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5181
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3613
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3594
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1172
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
885
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.