Solved

Visual basics

Posted on 2003-12-01
7
362 Views
Last Modified: 2013-12-04
How do you make a button print out the form while the program is running
0
Comment
Question by:fishmanfishman
  • 2
7 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 50 total points
ID: 9850344
public sub command1()
   YourFormName.PrintForm
end sub
0
 
LVL 5

Expert Comment

by:peterpuscas
ID: 9850364
Open the form for design.
Double click on your button.
(If you don't have the button yet, open the toolbox from Menu\View\Toolbox and add the button on the form)

write :
  Me.PrintForm

example:
Private Sub Command1_Click()
  Me.PrintForm
End Sub
0
 

Expert Comment

by:death_befo_dishonor
ID: 9854949
a friendly tip on how to sound more professional: it's 'visual basic', not 'visual basics' :P

(im just playin and annoying people as usual)

laterz bro

btw both those guys above have correct answers
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 10319727
My recommandation: answered by dhaest
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
wordlen challenge 3 61
PHP question(s) about order of output 9 57
Adoquery sql  left join does not work 25 81
VbScript to countdown to New Year's Day 6 25
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
A short article about a problem I had getting the GPS LocationListener working.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now