Beispiel #1
0
 private void getCLSIDButton_Click(object sender, EventArgs e)
 {
     try
     {
         ComObjectSelectionDialog dlg = new ComObjectSelectionDialog();
         dlg.SupportedInterface = new Guid("839D7762-5121-4009-9234-4F0D19394F04");
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             ComCLSID = dlg.CLSID;
         }
     }
     catch { }
 }
 private void lookupCLSIDToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         var dlg = new ComObjectSelectionDialog {
             SupportedInterface = new Guid("839D7762-5121-4009-9234-4F0D19394F04")
         };
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             ComCLSID = dlg.CLSID;
         }
     }
     catch { }
 }
 private void getCLSIDButton_Click(object sender, EventArgs e)
 {
     try
     {
         ComObjectSelectionDialog dlg = new ComObjectSelectionDialog();
         dlg.SupportedInterface = new Guid("839D7762-5121-4009-9234-4F0D19394F04");
         if (dlg.ShowDialog(this) == DialogResult.OK)
             ComCLSID = dlg.CLSID;
     }
     catch { }
 }