Re: How to get the DotNETClassName of an unknown DotNET control
Never mind. Turned out something was screwed up with the way TP imported the DotNET assembly for that control. I deleted the Testpartnerinterop* files, reimported everything and now I'm getting a proper object reference of the type I originally expected.
How to get the DotNETClassName of an unknown DotNET control
Does anyone know how I can determine at run-time the DotNETClassName of a particular DotNet control?
I'm trying to get an object reference for a third party toolbar control. When I select the control, using the identify tool, it tells me its a GUIObject with a DotNETClassName of Infragistics.Win.UltraWinToolbars.UltraToolbarsDoc kArea.
Unfortunately, when I create an object variable of type UltraToolbarsDockArea, and try to set it using the TGUIObject.Object method, I get a type mismatch error. So apparently, the TGUIObject.Object method is actually returning something different then what the Identify tool tells me it is.
I tried using the VB TypeName function to identify the object returned by TGUIObject.Object, but it only gave me the name of the abstract base class from which all of the Infragistics controls are derived from. I need to know specifically what class of control I'm getting so I know just what I can and can't do with it.