Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8884911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:10:48+00:00 2026-06-14T21:10:48+00:00

I am new to VB and today I programmed my first form that uses

  • 0

I am new to VB and today I programmed my first form that uses parent and child forms. The assignment asks to “print the active child form” and I am a little stuck. So far this semester printing has not really been a big part of the assignments and I can’t seem to find much in the book.

The way the assignment is coded is in the parent form there is a menu strip and I created a print click event in the menu. I guess I’m unsure where to start to make this be able to print just the active child form. My extent of printing my forms has been been dropping a printform from the VB powerpacks and then coding the form to print to preview.

Can someone point me in the right direction? Any hint would be huge so I know at least what to look for in the book. This is for homework.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:10:49+00:00Added an answer on June 14, 2026 at 9:10 pm

    I found the answer to my own question. Here is a snipped of the code I used. I ended up keeping my printform from the powerpack I just was hung up on how to tell the program to find the active form.

    Here is the code I used.

    Private Sub PrintToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintToolStripMenuItem.Click, PrintToolStripButton.Click
    
        If Me.ActiveMdiChild Is Nothing Then
            Return
        End If
    
        PrintForm1.Form = Me.ActiveMdiChild
        PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview
    
        PrintForm1.Print()
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was attempting to use a new library today that I found on the
I did a rails new today, then created a simple search bar: <form> <input
I am very new (started today) to writing chrome extensions but need to write
Ive just tryed some things out with my new server today, and ive found
Today my new HP iPAQ was delivered at my home, but now I want
I am new (as of today) to NUnit and TDD. However, I am very
I have the local file path as c:\new folder\pdf\today\k.pdf I want to replace the
java.util.Date date = new java.util.Date(); java.sql.Date today = new java.sql.Date(date.getTime()); //2012-03-23 java.sql.Time time =
Today I got my new PC ( Windows 7 , 32 bit) and installed
Today I created a new staging table and a BCP .fmt file. I created

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.