View RSS Feed

Psynic

NotePad Project.

Rate this Entry
by , 02-11-2010 at 07:53 PM (1094 Views)
Being a new programmer there is no doubt that in my effort to expand my c# knowledge, there will be alot of questions asked.

So far my notepad supports scaling the main textbox with the main window, the autoscroll feature so if enough text is entered you can properly scroll through the text. The program also supports Open, Save, Copy, Cut, Paste, Select All and about notepad which opens a new form with some information about the program.

I am currently tryin to implement Print and PrintPreview features into my program. also i want to add a listbox to my form to change the font size and eventually Font style.

I want to thank thegamemaker and Quackware so far for helping me understand how to implement the features i currently have in the program

I have included some screenshots to show my progress with my Notepad project

//Selecting Font

//File Menu

//Edit Menu

//Saving A File

//Opening A File

//About Notepad menu

//About Notepad


Also you can find a download of the unfinished product as an exe here http://www.2shared.com/file/11344139...6/NoteBad.html

Submit "NotePad Project." to Digg Submit "NotePad Project." to del.icio.us Submit "NotePad Project." to StumbleUpon Submit "NotePad Project." to Google

Updated 02-12-2010 at 06:33 PM by Psynic

Tags: None Add / Edit Tags
Categories
Uncategorized

Comments

  1. DarkLordoftheMonkeys's Avatar
    I don't think notepad is good for programming if you want to do anything complicated. It's a featureless text editor, no color coding or debugging or any of that other useful stuff. I know how hard it is to find an error in a program that I wrote using an editor without any programming aids. Considering that you appear to be using Windows, I would suggest moving to Notepad+ or Visual Studio.
  2. ZekeDragon's Avatar
    DarkLord... what Psynic is doing is implementing his own NotePad-like program, not using NotePad for programming. At least that was the impression I got from this post, I think the Windows NotePad program supports more than what Psynic's does as of yet.
  3. Psynic's Avatar
    Yes i am creating my own version of notepad using the Visual C# IDE not using it to code.

    ZekeDragon im thinking of trying to implement a tab system so you can have more than one file open soon what do you think of that idea? it feels like it might raise unnecessary complications in my program. do you think this would be a good or bad idea?
  4. James.H's Avatar
    Great shout outs to thegamemaker and quackware, hopefully they see your blog

    So how far away are you from completition ? Any previews or screen shots for us ?
  5. ZekeDragon's Avatar
    Depends on how it's implemented, it's actually not terribly complicated I know that the generic Linux text editor (gedit) has multiple tabs and syntax highlighting, so you could try doing something similar for Windows. If you think it'd be too complicated for you to implement than don't do it, but for a user it would only be a great boon.
  6. CommittedC0der's Avatar
    Quote Originally Posted by Psynic
    I want to thank thegamemaker and Quackware so far for helping me understand how to implement the features i currently have in the program
    No prob, And I think the tabs thing sounds cool.
  7. Psynic's Avatar
    I will upload some screenshots shortly here. right now i am actually fairly far along the main things i need to get working are print, print preview and the tabs if i go for it.

    one other thing i think i should include is a check to make sure you save before exiting the program but this PrintPreviewDialog is driving me nuts i have the code to open the printpreview and create a document within the print preview but i cannot get the text from the textbox to transfer to the print document.
    Code:
            private void printToolStripMenuItem1_Click(object sender, EventArgs e)
            {
                PrintDocument prntDoc = new PrintDocument();
                PrintPreviewDialog pDialog = new PrintPreviewDialog();
    
                pDialog.Document = prntDoc;
    
                if (pDialog.ShowDialog(this) == DialogResult.OK)
                {
                //Generate the PrintPreview
                prntDoc.Print();
                }
                
    
                
                
                
            }
    any idea's?
  8. Psynic's Avatar
    I have updated this entry with some screenshots to show my progress thus far. Also you can find a download of the unfinished product exe through this link http://www.2shared.com/file/11344139...6/NoteBad.html
  9. Psynic's Avatar
    I have finally successfully got my print feature working on my notepad! thanks to genux for finding and explaining how to use printpreviewdialog!