Hello,
I have a list of files displayed in a listbox.
when I select a file from the listbox i want the file to load into a panel on my form.
i.e. if its a word document word will open in the panel, if its a pdf reader wil open into the panel.
I can get the files to load externally using
however i am unsure of how to get it to then dock in my panel. I triedCode:Dim ProcStart As New ProcessStartInfo ProcStart.FileName = ListBox1.SelectedItem Process.Start(ProcStart)
but this is obviously wrong as I can't add a process as a control.Code:Me.Panel1.Controls.Add(ProcStart)
Do i need to create an instance of the program (i.e. word) and then dock that?
thanks for looking!




Reply With Quote