PDF Reader - Visual Basic .NET

Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013

This tutorial will show you how to make a pdf reader in visual basic .net

Requirements: A Form, a button and a PDF reader:

To add a pdf reader to the form:

On the Toolbox: right click the mouse and click on Choose Items...:

Visual Basic 2008 Add WinSock

A Window will appear: Click on COM Components.

Scroll down to Adobe PDF Reader and check it then click ok.

Then click ok.

This will add Adobe PDF Reader control to the control box:

Then drag Adobe PDF Reader to the form:

Then add OpenFileDialog to the form.

Change OpenFileDialog Filter property to: PDF Files (*.pdf)|

Add the following

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        AxAcroPDF1.src = OpenFileDialog1.FileName
    End Sub

Share This

Home | About | Contact | Privacy Policy

Copyright visual-basic-tutorials.com 2018 - All Rights Reserved.