Step 1: Create a ArcMapWrapper.cs, wrapper class
using System;
using System.Windows.Forms;
using ESRI.ArcGIS.Framework;
namespace ArcMapClassLibrary2
{
class ArcMapWrapper:IWin32Window
{
private IApplication
_arcMapApplication;
public ArcMapWrapper( IApplication
mApplication)
{
_arcMapApplication = mApplication;
}
public IntPtr
Handle
{
get { return new IntPtr(_arcMapApplication.hWnd);
}
}
}
}
Step 2: Access from Win-form
WinForm fm = new WinForm();
ArcMapWrapper wrapper= new
ArcMapWrapper(map_application);
fm.ShowInTaskbar = false;
fm.Show(wrapper);
//Try, it behaves like a modal dialog
//fm.ShowDialog()