Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,903 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
vb.net I have folder in program path called patient files i need to open specific pdf file using textbox1 with name of file
Try something like this:
Dim p = Path.Combine(Application.StartupPath, "patient files", textbox1.Text & ".pdf")
Dim si = New ProcessStartInfo With {.FileName = p, .UseShellExecute = True}
Process.Start(si)