private void viewPropertiesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         Program.GetMainForm(m_registry).HostControl(new MarshalEditorControl(m_registry,
                                                                              COMUtilities.MarshalObjectToObjRef(m_pObject, GetSelectedIID(),
                                                                                                                 MSHCTX.DIFFERENTMACHINE, MSHLFLAGS.NORMAL)));
     }
     catch (Exception ex)
     {
         Program.ShowError(this, ex);
     }
 }
        private void viewInterfaceToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                COMObjRefStandard objref = COMUtilities.MarshalObjectToObjRef(m_pObject,
                                                                              GetSelectedIID(), MSHCTX.DIFFERENTMACHINE, MSHLFLAGS.NORMAL) as COMObjRefStandard;
                if (objref == null)
                {
                    throw new Exception("Object must be standard marshaled to view the interface");
                }

                EntryPoint.GetMainForm(m_registry).LoadIPid(objref.Ipid);
            }
            catch (Exception ex)
            {
                EntryPoint.ShowError(this, ex);
            }
        }