DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: How to print data from one form to another

  1. #1
    Join Date
    Apr 2007
    Posts
    4

    How to print data from one form to another

    Can someone give me the code to print result from Form1 to Form2 pleaseeeeeeeeeeeeeeeeeeeeeee

  2. #2
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    sorry, I would like to help but I do not understand what you are trying to accomplish
    Which "data", what do you mean with "printing" and what about form1 and form2?
    "There are two ways to write error-free programs. Only the third one works."
    Unknown

  3. #3
    Join Date
    Apr 2007
    Posts
    4
    its ok .. i talked to my professor and it worked out fine .. i was trying to print like addition result to another form. just didnt know how . but i had to link the forms togather to get info from one to another.

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    A very simple way is
    Code:
    Private Sub Command1_Click()
    Form2.Show
    Form2.Print "Hello World"
    End Sub

Similar Threads

  1. quick basic codes conversion
    By oranged in forum VB Classic
    Replies: 2
    Last Post: 07-19-2006, 06:50 AM
  2. Replies: 3
    Last Post: 01-11-2006, 04:46 PM
  3. Replies: 0
    Last Post: 02-01-2001, 05:02 AM
  4. Data Form Wiz
    By lorin in forum VB Classic
    Replies: 0
    Last Post: 11-16-2000, 04:46 PM
  5. I am helpless - Edit Info form
    By Dan in forum VB Classic
    Replies: 0
    Last Post: 03-17-2000, 06:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center