[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Collapse]PDF Viewer
   [Expand]Getting Started
    Coordinate Systems
   [Expand]Access and Edit Document Content
    [Collapse]Getting Started
      How to: Add a PDF Viewer to the WinForms Application at Design Time
      How to: Add a PDF Viewer to the WinForms Application via Code
      How to: Load a PDF Document from a File
      How to: Load a PDF Document from a Stream
    [Expand]Interactive Form
    [Expand]Text Markup Annotations
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Add a PDF Viewer to the WinForms Application at Design Time

The following example demonstrates how to add the PdfViewer to a form at design time.

To add a PDF Viewer to the Windows Forms application at design time, do the following.

  1. Run Microsoft® Visual Studio® 2012, 2013, 2015 or 2017.

  2. Start a new project (by pressing CTRL+SHIFT+N) and create a new Windows Forms Application.

  3. Open the Visual Studio designer and press CTRL+ALT+X to run the Toolbox. Expand the DX.18.2: Common Controls category, and drop the PdfViewer control onto the main form of the application.

  4. Click the PdfViewer's smart tag to invoke its actions list. In the actions list, click the Dock in parent container link. This allows the PDF Viewer to occupy all of the available spaces on the form.

    After docking the PDF Viewer, it will appear as follows.

  5. The PdfViewer is now added to your application.

Expanded See Also

Is this topic helpful?​​​​​​​