I am trying to add a c# calculator program into a web part that is being added as a feature in sharepoint 2007. I can not seem to get the site to load the calc.exe program. I am using this below.
Code:
protected override void OnLoad(EventArgs e)
{
if (!_error)
{
try
{
base.OnLoad(e);
this.EnsureChildControls();
System.Diagnostics.Process.Start("c:\\WinFormCalculator.exe");
// Your code here...
}
catch (Exception ex)
{
HandleException(ex);
}
}
}
Comment