R
Rob Lorimer
I tried to find this out today, but couldn't find any answered posts (it's
been asked numerous times!
In the OnConnection method:
if( application is Interop.Excel.Application )
{
MessageBox.Show("Excel Application");
}
else if( application is Interop.Access.Application )
{
MessageBox.Show("Access Application");
}
You need to reference Interop.Excel, Interop.Access and System.Windows.Forms
for this example.
been asked numerous times!
In the OnConnection method:
if( application is Interop.Excel.Application )
{
MessageBox.Show("Excel Application");
}
else if( application is Interop.Access.Application )
{
MessageBox.Show("Access Application");
}
You need to reference Interop.Excel, Interop.Access and System.Windows.Forms
for this example.