AnsweredAssumed Answered

How to use the GenericWindow co-class?

Question asked by huangs3 on Jun 15, 2012
Latest reply on Jun 25, 2012 by huangs3
Hi Everybody:

    I am testing around the ArcObjects 10 ESRI.ArcGIS.*UI interfaces and see what kind of out-of-box dialog boxes and windows are available to me.

    I am guessing that the GenericWindow co-class should popup a window for me
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/GenericWindowClass_Class/000v0000001q000000/

    However, I haven't been able to find a way to use it. I tried the following code and debuged it:
*********************************************
try
{
     IGenericWindow x = new GenericWindowClass();
     x.Application = _mApplication;
     x.Show(true);
} catch (Exception ex)
{
    MessageBox.Show(ex.Message);
}
**********************************************

an exception is throwned at "x.Show(true)": Error HRESULT E_FAIL has been returned from a call to a COM component.

I also searched around the namespace including the Object Model diagram, but didn't find any *Factory class to generate an instance of it.

How shall I use this co-class? and any clue how I can figure the similar information?

Thank you!

Outcomes