Ok here's what I got this is in Vb, use the IextensionApplication
Like so For starup
Public Sub Initialize() Implements Autodesk.AutoCAD.Runtime.IExtensionApplication.Initialize 'Load CUI Menu
Application.DocumentManager.MdiActiveDocument.SendStringToExecute("filedia 0 cuiload (cui name with support path added)filedia 1 ", False, True, False)
It is working well. On Each time when my program loads in autocad, i first unload my cui file and then load it. In this cui file i have a toolbar, a menu and shortcut keys. When I right click on standard toolbar , a context menu opens for toolbars to show and hide. There i could not see any entry for my toolbar. if i close my toolbar, then how can i again show it on screen, is there is any programing way to show and hide my custom toolbar.
I also come to know, how to give path for icons to toolbar button in cui. Because if i give the path of a disk icon, it will not availbale on anohter machine. I have some icons in my Project Resources, then how can i set the path for icons for them