From 2b56a240e6d0cf1d0dfa50b8b3bf9a341ebfa4a9 Mon Sep 17 00:00:00 2001 From: HemalathaDuraisamy Date: Wed, 6 Mar 2024 12:13:35 +0530 Subject: [PATCH] add Pdfviewer winforms code behind --- WindowsForms/PDF-Viewer/Getting-Started.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/WindowsForms/PDF-Viewer/Getting-Started.md b/WindowsForms/PDF-Viewer/Getting-Started.md index fd9b02767..5808c9c98 100644 --- a/WindowsForms/PDF-Viewer/Getting-Started.md +++ b/WindowsForms/PDF-Viewer/Getting-Started.md @@ -89,10 +89,13 @@ Imports Syncfusion.Windows.Forms.PdfViewer //Initializing the PdfViewerControl PdfViewerControl pdfViewerControl1 = new PdfViewerControl(); -//Loading the document in the PdfViewerControl -pdfViewerControl1.Load("Sample.pdf"); //Add PdfViewerControl to the Form Controls.Add(pdfViewerControl1); +//Docking the control to all edges of its containing control and sizing appropriately. +pdfViewerControl1.Dock = DockStyle.Fill; + +//Loading the document in the PdfViewerControl +pdfViewerControl1.Load("Sample.pdf"); {% endhighlight %} {% highlight vb %}