Click here to Skip to main content
12,999,982 members (49,590 online)
Click here to Skip to main content


108 bookmarked
Posted 18 Mar 2013

Encrypting Editor Notepad Replacement

, 28 Jul 2014
A C# .NET 3.5 (Win7) Windows Forms Application with source code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Messagebox_Class;

namespace CryptPad
	public partial class GoTo : Form
		CryptPad Crypt_Pad;

		public GoTo ()
			InitializeComponent ();
			this.Font = SystemFonts.MessageBoxFont;

		private void buttonGoTo_Click (object sender, EventArgs e)
			int i;
			if (!Int32.TryParse (textBoxGoTo.Text, out i))
				Messagebox.Show ("Invalid line number!");
			i = Crypt_Pad.txtBody.GetFirstCharIndexFromLine (i-1);
			Crypt_Pad.SelectScroll (i, 0);
			this.Close ();

		private void buttonCancel_Click (object sender, EventArgs e)
			this.Close ();

		private void GoTo_Load (object sender, EventArgs e)
			Crypt_Pad = (CryptPad) this.Owner;
			int i = Crypt_Pad.txtBody.SelectionStart;
			i = 1+ Crypt_Pad.txtBody.GetLineFromCharIndex (i);
			textBoxGoTo.Text = i.ToString ();

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Frank T. Clark
Systems Engineer Three Angels Broadcasting Network
United States United States
I am a Software Systems Design Engineer experienced with IEEE standards and the entire IEEE software development life cycle. Concept Exploration, Requirements, Design, Implementation, Test, Installation and Checkout, Operation and Maintenance. I enjoy working with people and solving customer problems.

I am currently employed as Information Technology Staff in the religious satellite broadcasting industry.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170624.1 | Last Updated 28 Jul 2014
Article Copyright 2013 by Frank T. Clark
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid