RSS Forums RSS
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 2514 | Replies: 2 | Solved
Reply
Join Date: Jul 2005
Posts: 19
Reputation: mickyboy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
mickyboy mickyboy is offline Offline
Newbie Poster

Help how to get a printer button on a form please

  #1  
Jul 16th, 2005
hi all i have a book using vbasic by babani books, it gives an example of a form with with one textbox,and 1 command button and code.

but gives a referance as follows, before running code return to design form,select the print command button use ctrl+c ctrl+v and drag two buttons onto the form, rename one button to quit.

by pressing the print command button should open the program and print on the face of the form..


but where is the print command button??? there is a printer icon on toolbar , but no printer button that i can find in the toolbox or active x controls, or any referance to a print command button in any vb6 books i have.

so is there a mistake in book as the only way i can see is to create one using a command button from toolbox and giving it the print caption and revelnt command code.


thank you
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2005
Posts: 31
Reputation: AlanC is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
AlanC's Avatar
AlanC AlanC is offline Offline
Light Poster

Re: how to get a printer button on a form please

  #2  
Jul 18th, 2005
There isn't a 'printer button' as such. You can make one, by using a standard command button to launch the common dialog control and make it display the printer dialog. You have to manage the actual printing bit in code. though.

See this tutorial for the basics.. http://www.developerfusion.com/show/86/

Good luck
Alan
Reply With Quote  
Join Date: Jul 2005
Posts: 19
Reputation: mickyboy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
mickyboy mickyboy is offline Offline
Newbie Poster

Re: how to get a printer button on a form please

  #3  
Jul 18th, 2005
thanks alan going back over exercises in book ,they had put a command button on a form and renamed it print, which i had not noticed, my second error was trying to use copy/paste from standard toolbar, rather than copy paste from drop down menu of command button.

i have now managed to copy "print" button on to another form which was the action described in book.

thank you
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:48 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC