hi!!!!!!!!!!
I am working on Ultratoolbar.I want to display windows monthcalender control in ultratoolbar ribbon.I m not getting how to do it.
If someone knw then please let me knw.
Thanx in advance.
That looks like a bug. I tried assigning the control at design time, and the toolbar sized itself correctly, so you might want to try that instead (right-click on the UltraToolbarsManager component and select 'Customize'). You also might want to report this as a bug since the runtime assignment should work the same way as it does at design time.
Thanx for ur reply.
It worked well.But if still I want to use MonthCalender then I cant see it completely.As the height of the toolbar is not enough to fit calender in it.
Can we increase the height of the ultratoolbarmanager ribbon?So that we can see complete control.
See code sample below. I recommend not displaying the calendar but rather a dropdown control that displays one when you drop it down, since displaying a MonthCalendar on a toolbar will eat up much more real estate than a dropdown control.
private void AddDateTool(){ Infragistics.Win.UltraWinToolbars.ControlContainerTool containerTool = new Infragistics.Win.UltraWinToolbars.ControlContainerTool( "dateTool" ); Infragistics.Win.UltraWinEditors.UltraDateTimeEditor control = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor(); //MonthCalendar control = new MonthCalendar(); containerTool.Control = control; this.ultraToolbarsManager1.Tools.Add( containerTool ); this.ultraToolbarsManager1.Toolbars[0].Tools.AddTool( "dateTool" );}