Hello,
Below is my code to move the Toolbar in the ArcMap.
After running the code, IWindowPosition.Move does not have any effect on the Toolbar. I found here that this was a bug back in version 10.0. So, I would like to know if this bug has been fixed or not or is there any way to move the Toolbar to the desired location.
Basically, we are adding few toolbars to the ArcMap through the custom extension. And when these toolbars are added, either they are floating, on top of of each other or docked that shrinks the ArcMap map area. So, it would be great is know if there is any way to add the toolbars in an organized way.
OS : Windows 7 x64
ArcGIS version 10.2.1.
Any help is appreciated.
Thanks,
S.
Below is my code to move the Toolbar in the ArcMap.
Code:
private void DockToolbar(string guidValue)
{
try
{
ICommandBars pCommandBars;
ICommandBar pCommandBar;
pCommandBars = pApps.Document.CommandBars;
UID pUID = new UID();
pUID.Value = guidValue;
pCommandBar = (ICommandBar)pCommandBars.Find(pUID);
if (pCommandBar != null)
{
IWindowPosition windowPos = (IWindowPosition)pCommandBar;
pCommandBar.Dock(esriDockFlags.esriDockShow);
windowPos.Move(1000, 1000);
}
}
catch (Exception ex)
{
//MessageBox.Show(ex.Message);
}
}
Basically, we are adding few toolbars to the ArcMap through the custom extension. And when these toolbars are added, either they are floating, on top of of each other or docked that shrinks the ArcMap map area. So, it would be great is know if there is any way to add the toolbars in an organized way.
OS : Windows 7 x64
ArcGIS version 10.2.1.
Any help is appreciated.
Thanks,
S.