private void menuObjectBindMoniker_Click(object sender, EventArgs e)
{
using (GetTextForm frm = new GetTextForm(_last_moniker))
{
frm.Text = "Specify Moniker";
if (frm.ShowDialog(this) == DialogResult.OK)
{
try
{
_last_moniker = frm.Data;
object comObj = Marshal.BindToMoniker(_last_moniker);
if (comObj != null)
{
OpenObjectInformation(comObj, _last_moniker);
}
}
catch (Exception ex)
{
MessageBox.Show(this, ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
}