Some more VB6

Discussion in 'Software' started by mastermosley, Apr 28, 2005.

  1. mastermosley

    mastermosley Sergeant

    I have a program that I am making which shows infomation on the form of the program and I want to be able to have a command button which will be "print" and by pushing this button it will print the infomation on the form. Please explain how to do this in the simplest way possible cus I am a noob at VB6 and just learning.
     
  2. dedub

    dedub Corporal

    This would be the easiest way.

    With Printer
    .FontSize = 16
    Printer.Print text1.text & vbtab & text2.text
    Printer.Print text3.text
    end with

    of course you will have to change the text boxes to what ever controls on your form you wanted to print.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds