Evo ti primer iz vb.net-a, ucitavanja pdf fajla preko acrobat readera, mozda ti pomogne.
Code:
Imports System.Runtime.InteropServices
Public Class Form1
<DllImport("User32.dll")> _
Private Shared Function SetParent(ByVal hWndChild As IntPtr, ByVal hWndNewParent As IntPtr) As IntPtr
End Function
Declare Auto Function SendMessage Lib "user32.dll" (ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
Private Const WM_SYSCOMMAND As Integer = 274
Private Const SC_MAXIMIZE As Integer = 61488
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim proc As Process
proc = Process.Start("C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe")
proc.WaitForInputIdle()
SetParent(proc.MainWindowHandle, Me.PictureBox1.Handle) ' e.g. Me.Handle, Me.RichTextBox1.Handle, etc.
SendMessage(proc.MainWindowHandle, WM_SYSCOMMAND, SC_MAXIMIZE, 0)
End Sub
End Class
rgdrajko