Closed Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26

Thread: I Feel Like Giving Up..

  1. #11
    genux's Avatar
    genux is offline Learning Programmer
    Join Date
    Dec 2009
    Location
    Norwich
    Posts
    79
    Rep Power
    8

    Re: I Feel Like Giving Up..

    Quote Originally Posted by QuackWare View Post
    Set a project for yourself like creating a copy of the windows calculator and write down all the steps and things you need to do on a piece of paper. As you work through the logic of the program look up anything you might be struggling with on Google. Also try video tutorials and watch as many as you can and try to replicate what they are doing in the tutorial. The more you work at it and the more you practice the better you are going to be.
    Yeah.. totally agree with QuackWare, the best thing to do is to come up with a small project and just go from there. Something that you like, web page, application etc.. personally if you come up with a idea of what you want to code (do not worry about the coding etc, if you have to re-write 1,2,3,4 times so what you are learning) text pad is the classics, or a clock.
    Code:
    int coffeePerDay = 10; // need to cut down!!!
    Codingfriends

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #12
    Psynic's Avatar
    Psynic is offline Learning Programmer
    Join Date
    May 2009
    Location
    Canada, AB
    Posts
    61
    Blog Entries
    1
    Rep Power
    11

    Re: I Feel Like Giving Up..

    I was having a similar problem. i decided to stick with C# because it seems to have a good balance of simplicity and functionality. one thing im doing right is making a notepad application with the features you might find the real notepad. the fun part is you can keep building and adding more features as you learn more. i dont really know how to use alot in C# yet but i have been asking on the forums whenever i am stuck and have received good help quickly.

    Try making your own notepad! the first thing you should do once you have your gui layed out is make a second form and have it open up with your name and why your creating the program upon a click on your toolstripmenu . thats where i started and im really having fun today!

  4. #13
    genux's Avatar
    genux is offline Learning Programmer
    Join Date
    Dec 2009
    Location
    Norwich
    Posts
    79
    Rep Power
    8

    Re: I Feel Like Giving Up..

    Psynic, yeah. .c# is a good language to start with, you get to learn the basics about different ideas of programming, e.g. variable types/ classes..

    Does you notepad program have features like on-the-fly loading of plugins for different syntax highlighting ? or are you going to implement that ?
    Code:
    int coffeePerDay = 10; // need to cut down!!!
    Codingfriends

  5. #14
    Hunter100 is offline Programming Professional
    Join Date
    Feb 2010
    Location
    Australia
    Posts
    289
    Rep Power
    0

    Re: I Feel Like Giving Up..

    Yeah don't give up I forgot the basics of C++ and am relearning from scratch like a week ago...and this time I keep notes and stuff and am on this forum see?

  6. #15
    Psynic's Avatar
    Psynic is offline Learning Programmer
    Join Date
    May 2009
    Location
    Canada, AB
    Posts
    61
    Blog Entries
    1
    Rep Power
    11

    Re: I Feel Like Giving Up..

    hah genux im still building on my notepad. i eventually want to implement those things as i get more advanced. right now im stuck on the print feature : ( however open save and font features are working along with copy, cut, paste, select all and an about feature that opens a second window with some information on the program. you dont happen to know how i can properly use the printpreviewdialog code do you genux?

  7. #16
    genux's Avatar
    genux is offline Learning Programmer
    Join Date
    Dec 2009
    Location
    Norwich
    Posts
    79
    Rep Power
    8

    Re: I Feel Like Giving Up..

    Hi Psynic, I have not used the prjntpreview before in c# but could look into it for you ? And give some code example in how to use it ?
    Code:
    int coffeePerDay = 10; // need to cut down!!!
    Codingfriends

  8. #17
    Psynic's Avatar
    Psynic is offline Learning Programmer
    Join Date
    May 2009
    Location
    Canada, AB
    Posts
    61
    Blog Entries
    1
    Rep Power
    11

    Re: I Feel Like Giving Up..

    hey genux. ok if you could shed any light on that i would be soo grateful i still cant get it. i have like half of the code working if you want to see what i have so far for the code you can find it in my blog here. http://forum.codecall.net/blogs/psyn...d-project.html

    its in one of my comments on the blog.

  9. #18
    Join Date
    Jan 2010
    Posts
    6
    Rep Power
    0

    Re: I Feel Like Giving Up..

    I had the same problem as you actually. I never could get into programming because all I saw was a wall of history text.

    I found a tutorial for C# that explained things from a video game/Windows basics perspective (i.e Namespace is a folder, etc).

    Since I was a gamer, it worked well for me because it merged my interests.


    The point is:


    Perhaps you're tackling learning in the wrong way. Instead of trying to learn conventionally, try learning from a different perspective (in my case, it was the gamer perspective). It really helps.

  10. #19
    genux's Avatar
    genux is offline Learning Programmer
    Join Date
    Dec 2009
    Location
    Norwich
    Posts
    79
    Rep Power
    8

    Re: I Feel Like Giving Up..

    Quote Originally Posted by Psynic View Post
    hey genux. ok if you could shed any light on that i would be soo grateful i still cant get it. i have like half of the code working if you want to see what i have so far for the code you can find it in my blog here. http://forum.codecall.net/blogs/psyn...d-project.html

    its in one of my comments on the blog.
    Not sure if this helps, but from this page,

    How to: Print in Windows Forms Using Print Preview

    You can create a printpreviewdialog. How it works is that you need to have a print document that is filled in with the details that you want to display on the print preview, this is created with a call via a event handler call PrintPage (when you request a print preview this will be called basically), and then fill in the printDocument with the details that you want to print, here is some code

    where the editorText is the multi line textbox.

    Code:
            
            private void button1_Click(object sender, EventArgs e)
            {
                PrintPreviewDialog printDialog = new PrintPreviewDialog();
                PrintDocument printDoc = new PrintDocument();
    
                // add in a new event handler so that when a printpage is requested to call this function.
                printDoc.PrintPage += new PrintPageEventHandler(fillInThePrintDoc);
                
                // set the print dialog document (the bit that you view) to the printDoc (the print out document)
                printDialog.Document = printDoc;
    
                // show the print dialog
                printDialog.Show();            
            }
    
            void fillInThePrintDoc(object sender, PrintPageEventArgs e)
            {
                int charactersOnPage = 0;
                int linesPerPage = 0;
    
                // Sets the value of charactersOnPage to the number of characters 
                // of stringToPrint that will fit within the bounds of the page.
                e.Graphics.MeasureString(editorText.Text, this.Font,
                    e.MarginBounds.Size, StringFormat.GenericTypographic,
                    out charactersOnPage, out linesPerPage);
    
                // Draws the string within the bounds of the page.
                e.Graphics.DrawString(editorText.Text, this.Font, Brushes.Black,
                e.MarginBounds, StringFormat.GenericTypographic);
            }
    very basic code and also mainly taken from that previous URL from MS. Not sure if it helps ?
    Code:
    int coffeePerDay = 10; // need to cut down!!!
    Codingfriends

  11. #20
    Psynic's Avatar
    Psynic is offline Learning Programmer
    Join Date
    May 2009
    Location
    Canada, AB
    Posts
    61
    Blog Entries
    1
    Rep Power
    11

    Re: I Feel Like Giving Up..

    OMG Genux <3 thank you so much. i was actually looking at the code from the tutorial on here and wondering why printDoc.PrintPage += new PrintPageEventHandler(fillInThePrintDoc); was giving me and error at (fillintheprintdoc) and i was thinking maybe there is a call he is doing but im not seeing the code? that's clearly what it was now that i see it. seriously thank you a ton for checkin that out. i know its a simple thing but it was driving me crazy.

Closed Thread
Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Look And Feel for Touchscreen friendly app
    By gregwarner in forum Java Help
    Replies: 9
    Last Post: 04-04-2011, 07:26 PM
  2. JAVA JScrollPane Look and Feel
    By truetaurus in forum Java Help
    Replies: 1
    Last Post: 10-11-2010, 10:47 AM
  3. Java Look And Feel Tutorial
    By Deadlock in forum Java Tutorials
    Replies: 3
    Last Post: 06-14-2010, 04:17 PM
  4. I feel SO bad for this kid...
    By phpforfun in forum The Lounge
    Replies: 17
    Last Post: 06-07-2008, 10:36 AM
  5. Giving Refunds
    By Blaze in forum Business and Legal
    Replies: 9
    Last Post: 10-20-2007, 10:04 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts