Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 22:53

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Tutorial]Making my notepad app beter

Discussion on [Tutorial]Making my notepad app beter within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
plasma-hand's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 442
Received Thanks: 105
[Tutorial]Making my notepad app beter

In this tutorial I will show you how to extend your notepad app we created in my tutorial

We will add some Menu items to the MenuStrip. The first Item will we a new Menu Drop Down called Format.
In the format Drop Down Menu add a menu item called Word Wrap. Set the Checked Property to true, set the CheckOnClick Property to true. Now select the TextBox(txtBox) and set the WordWrap property to true.

Now go back to the Format menu and add one more menu item call it Font.
Drag a FontDialog onto the Form, call it fontDialog

Go to the Font menu item's Click() event and type
Code:
fontDialog.ShowColor = true;
            fontDialog.ShowEffects = true;
            if (fontDialog.ShowDialog(this) == DialogResult.OK)
            {
                txtBox.ForeColor = fontDialog.Color;
                txtBox.Font = fontDialog.Font;
            }
Now we will add some shortcut keys.
For the New menu item's shortcut key type in Ctrl+N
For the Open menu item's shortcut key type in Ctrl+O
For the Save menu item's shortcut key type in Ctrl+S
For the Save As menu item's shortcut key type in Ctrl+Shift+S
For the Print menu item's shortcut key type in Ctrl+P
For the Print Preview menu item's shortcut key type in Ctrl+Shift+P
For the Undo menu item's shortcut key type in Ctrl+Z
For the Cut menu item's shortcut key type in Ctrl+X
For the Copy menu item's shortcut key type in Ctrl+C
For the Paste menu item's shortcut key type in Ctrl+V
For the Select All menu item's shortcut key type in Ctrl+A
For the Font menu item's shortcut key type in Alt+F

Now we will add a StatusStrip()

Make sure that it is docked to the bottom, then Right Click on txtBox and select Bring to Front.

Now add a StatusLabel to the StatusStrip by selecting the small arrow on the StatusStrip, call it statusLabel.

Now go to the txtBox's TextChanged() event and type

Code:
Int32 lines = txtBox.Lines.Length;
            Int32 textLength = txtBox.Text.Length;
            statusLabel.Text = "Lines: " + lines + " Characters: " + textLength;
Now paste that in the Form's Load() event as well.

Now go to the Word Wrap menu item's Click() event and type

Code:
txtBox.WordWrap = wordWrapToolStripMenuItem.Checked;
            wordWrapToolStripMenuItem.Checked = txtBox.WordWrap;
Your done theres gonna be at least an error post here or look in the source files to find your mistake.
Attached Files
File Type: zip Notes_Extend_.zip (70.6 KB, 10 views)
plasma-hand is offline  
Reply


Similar Threads Similar Threads
Tutorial on making GM account
12/20/2012 - Silkroad Online - 24 Replies
Can someone write up a step by step on how to edit the pk2 file with a hex editor that will allow you to make a GM account. Any help is appreciated.
[Tutorial]Making No Recoil
12/12/2009 - Soldier Front Hacks, Bots, Cheats & Exploits - 11 Replies
Hello, before making you very own anti recoil, you will need a few items. 1. SFF unpacker/packer by Revenger 2. Scr_001.sff All right, so when you have those, run the unpacker and find your SFF file. http://i31.tinypic.com/5pnbcz.jpg
[TUTORIAL]Making a NPC
07/09/2009 - CO2 Private Server - 0 Replies
Idk if this has been made already but i wanted to contribute to Epvpers... k heres where we start if (CurrentNPC == NPCID) { SendPacket(General.MyPackets.NPCSay("Here's where you put the NPC dialog")); SendPacket(General.MyPackets.NPCLink("BlahBla h", 1)); SendPacket(General.MyPackets.NPCLink("BlahBla h", 255)); ...
[TUTORIAL] Making you own PRIVATESERVER
05/16/2009 - MapleStory - 45 Replies
NOTE: CREDITS GOES TO azzybish in Odin MS Forum What you need: mySQL mySQL Query Browser OdinMS.rar WampServer localhost.exe Java JDK 6 Update 10
[Tutorial]Creating a notepad app[Lot of Text]
11/23/2008 - CO2 Programming - 15 Replies
Create a Notepad App In this tutorial I will show you how you can create your own Notepad like Application. Start by creating a new Windows Forms Application. Now we can add some controls. The first control will be a MenuStrip. After that right click on the newly created menustrip, Select Insert Standard Items. Delete the Tools menu and the Help menu. Delete the Redo menu item from the Edit menu. Now drag and drop a TextBox onto the form.



All times are GMT +1. The time now is 22:54.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.