...may I hasten to add that the OK button becomes enabled at first, then after selecting a COM object, it remains disabled with the wait cursor running indefinitely.
Sometimes, when a COM object is selected, an exception is thrown out:
Exception information:
-------------------------------------------------------------------------------------------------------
The object's type must be __ComObject or derived from __ComObject.
Parameter name: o
-------------------------- Technical Information Follows --------------------------
Exception Details:
----------------------------------------
Exception type: System.ArgumentException
Message: The object's type must be __ComObject or derived from __ComObject.
Parameter name: o
Source: mscorlib
Target Site: ReleaseComObject
Stack Trace:
at System.Runtime.InteropServices.Marshal.ReleaseComObject(Object o)
at Microsoft.Win32.TaskScheduler.ComObjectSelectionDialog.SupportsInterface(Guid clsid, Guid iGuid)
at Microsoft.Win32.TaskScheduler.ComObjectSelectionDialog.listView1_ItemSelectionChanged(Object sender, ListViewItemSelectionChangedEventArgs e)
at System.Windows.Forms.ListView.OnItemSelectionChanged(ListViewItemSelectionChangedEventArgs e)
at System.Windows.Forms.ListView.WmReflectNotify(Message& m)
at System.Windows.Forms.ListView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)