Question from Stackoverflow: http://stackoverflow.com/questions/15919756/reset-the-infragistics-toolbars-location
I'd need to reset the Infragistics toolbars location, in order do not have empty spaces between toolbars. Is there a way to do it?
Hello serhiol,
If you need any additional assistance don’t hesitate to ask.
Regards
Hello,A possible approach to achieve this might be by using the following code:
UltraToolbarsManager1.ResetLockToolbars()
UltraToolbarsManager1.ResetToolbarSettings()
If you need more help please visit the below link
http://ahmadkhalid44.blogspot.com/
Ahmad Khalid
Software Engineer
Saood Software Solution
I`m not sure that I understand your scenario. Are you able to upload small sample with your scenario that reproduce your issue. I`ll be glad to research it for you.
serhiol said: if this is not possible, maybe is there a way do not allow to the user to let gaps between toolbars (like Visual Studio 2010 does not allow)?
Maybe you could try the settings :
- ultraToolbarsManager1.Toolbars[0].Settings.GrabHandleStyle = Infragistics.Win.UltraWinToolbars.GrabHandleStyle.None;
also Allow properties under ultraToolbarsManager1.Toolbars[0].Settings....
Let me know if you have any questions.
Or, if this is not possible, maybe is there a way do not allow to the user to let gaps between toolbars (like Visual Studio 2010 does not allow)?
Georgi, thank you for your explanation and video.
I have some tooolbars, and a TabControl.
There are specifc toolbar for each tab.
So, I need that every time I change the tab, the (visible) toolbars be (re)aligned to left.
The behavior of the toolbarManager is very good when the user close and reopen the Form.
Now, I want this behavior (left alignment) to be possible without closing the form (via a button click or tab change).