Tried to find solution for you.I think solution is in
ITableDockWindowAdmin pTabWindowAdmin = new TableDockWindowClass();
pTabWindowAdmin.Show(ITableWindow, bool)
but ITableDockWindowAdmin keeps me bringing exception. I must be missing some initialization class.I managed to open Table dialog:IFeatureLayer pFeatureLayer = FindLayer("LayerName");
ITableWindow pTW = new TableWindowClass();
ITableWindow pTW_Layer = pTW.FindViaFeatureLayer(pFeatureLayer, true);
// windows not open if null
if (pTW_Layer == null)
{[INDENT]// Open datatable in Table window
[/INDENT]
[INDENT]ITableWindow pTableWindow = new TableWindowClass();
pTableWindow.FeatureLayer = pFeatureLayer;
pTableWindow.Application = ArcMap.Application;
if (!pTableWindow.IsVisible)
[/INDENT]
[INDENT=2]pTableWindow.Show(true);
[/INDENT]
[INDENT]return;
[/INDENT]
}
Tried with Win32APi but no luck, not responding properly to the SetWindowPos and ShowWindow API.Hopefully someone would had more ideas to solve this problem.Regards Dubravko