Closed Thread
Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26

Thread: I Feel Like Giving Up..

  1. #21
    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..

    Nps I also learned about that functional aspect as well
    Code:
    int coffeePerDay = 10; // need to cut down!!!
    Codingfriends

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

     
  3. #22
    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..

    it seems to serve you well. i think i would be wise to take in that aspect as well

  4. #23
    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..

    also i just wanna let you know
    Code:
            void fillInThePrintDoc(object sender, PrintPageEventArgs e)
        {
            int linesPerPage = 0;
            int charactersOnPage = 0;
    
           1 e.Graphics.MeasureString(richTextBox1.Text, richTextBox1.Font, e.MarginBounds.Size, StringFormat.GenericTypographic, out charactersOnPage, out linesPerPage);
    
           2 e.Graphics.DrawString(richTextBox1.Text, richTextBox1.Font, Brushes.Black, e.MarginBounds, StringFormat.GenericTypographic);
        }
    on lines that ive labeled 1 and 2 i changed this.text to richtextbox.text(which is the name of my textbox) because it wasnt properly formatting the text in the print preview for some reason. now with the change i made it works great. thank you again seriously.

  5. #24
    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..

    err durr i meant this.font to richtextbox1.font

  6. #25
    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..

    Nps just sometimes like as Smashbrosboy said, explaining in a different way does help at times

    looking forward to the finished program
    Code:
    int coffeePerDay = 10; // need to cut down!!!
    Codingfriends

  7. #26
    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..

    next task for me-> figure out how to make it print more than one page XD ** also i like how i just jacked someone else's thread lol **

Closed Thread
Page 3 of 3 FirstFirst 123

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