Answer the question
In order to leave comments, you need to log in
How to display and open pdf files from folder in TabControl?
There is a TabControl with buttons. Different tabControl pages have different pdf documents. Maybe there will be word. They are displayed as a list (as in a folder). These pdf documents need to be opened in view mode (so that they cannot be edited). How can I do that?
Answer the question
In order to leave comments, you need to log in
private void button1_Click(object sender, EventArgs e)
{
tabControl1.SelectTab(1);
webBrowser1.Navigate("путь_к_pdf_файлу");
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question