try
{
TabPage page = new TabPage();
tabMain.Controls.Add(page);
page.Text = strTabName;
switch (strControlType)
{
case "pdf":
AxAcroPDF PDFFile = new AxAcroPDF();
page.Controls.Add(PDFFile);
PDFFile.CreateControl();
PDFFile.Dock = DockStyle.Fill;
PDFFile.LoadFile(strFileName);
break;
case "doc":
case "docx":
break;
case "txt":
break;
default:
break;
}
}
catch(Exception ex)
{
var message = ex.Message.ToString();
MessageBox.Show(message);
}
ASKER
C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).
TRUSTED BY
ASKER
I will look into the AxSHDocVW.AxWebBrowser to see if that meets my needs.
Thank you!