O'Reilly logo

Developing and Implementing Windows®-Based Applications with Visual C#™ .NET and Visual Studio® .NET Exam Cram™ 2 (Exam 70-316) by Priti Kalani, Amit Kalani, Kalani Kirk Hausman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Practice Questions

Question 1You are printing the first page of a two-page document and want to fire the PrintPage event for the second page. How can you do this with the least amount of effort?
  • A. Set the HasMorePages property to false.

  • B. Set the HasMorePages property to true.

  • C. Perform a simple loop, instantiating the PagePrint method for each page in order.

  • D. Place two PrintDocument components within the application, and link each to the appropriate page.

A1: Answer B is correct. By setting the HasMorePages property to true, the PrintDocument component will generate the next page's output. Answer A is incorrect because setting the HasMorePages property to false would tell the component there are no more pages to print. Answers C and D are ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required