Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
625
Ribbon control - form border
posted

Hello Team,

We want to set the colorscheme of the form at runtime, we use following code for the same :

Office2007ColorTable.ColorScheme = CType(2, Infragistics.Win.Office2007ColorScheme)

For this reason we are using the ultrawinexplorer control on the child forms also. In the child form we make the RIbbon ->Application Menu visible false and RIbbon -> QuickAccessToolbar as visible false. This is solving our purpose,but the problem here is that the ribbon control has a border on the left, bottom and right side , but we want the same border on the top also (please find attached image). There are two queries here :

1) Is there any way to draw the border on the top side of the form  (as shown in the pic attached) ?

2) Is there any option to change the colorscheme of the child form at runtime without using the Ribbon control ?

 Thanks in advance.

 

Parents
No Data
Reply
  • 44743
    posted

    Instead of showing the Ribbon and hiding all of its parts, it would probably be better to leave the Ribbon hidden and instead set the UltraToolbarsManager's FormDisplayStyle to RoundedSizable.

    April said:
    1) Is there any way to draw the border on the top side of the form  (as shown in the pic attached) ?

    The same dark outer border should be drawn on all sides. If it is not, it might be a bug and you can submit it to the support group: http://ko.infragistics.com/gethelp. You can also try to use a draw filter to draw your own border on the dock area. If you are not familiar with draw filters, the following article gives a brief overview: http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/Win_Draw_Filter.html

    April said:
    2) Is there any option to change the colorscheme of the child form at runtime without using the Ribbon control ?

    Like I said, you can set the FormDisplayStyle instead of the Ribbon, but if this is not what you are looking for, you can try to override the WndProc of your Form and handle the WM_NCPAINT message to manually draw your Form's borders. I would not recommend it though.

Children
No Data