RadForm with RibbonBar incorrectly maximizes

4 posts, 0 answers
  1. Eric
    Eric avatar
    1 posts
    Member since:
    Sep 2008

    Posted 02 Dec 2008 Link to this post

    I'm trying to evaluate Telerik WinForm controls for our organisation with potential for large license purchase.

    I've created a simple Form which inherits from RadForm and added a RadRibbonBar. I need to hide the RadForm title so that the ribbon bar appears correctly, however when I maximize the Form the RadForm menu reappears incorrectly at the very top of the screen, showing only half of the title bar (it should be invisible). I've tried using the RadRibbonForm template with the same results. I've tried searching the forums but without much success. This looks like a bug! Any suggestions?

    Eric


    Environment:
    Visual Studio 2008 / NET 3.5
    o/s: Windows Vista
  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 05 Dec 2008 Link to this post

    Hi Eric,

    Thank you for your interest in our controls.

    Yes, indeed, this is an issue with RadRibbonForm when used on Vista, which we are currently researching. We are sorry for this problem, we will address it soon.

    I would suggest using the ShapedForm for now - it should show the ribbon correctly.

    Do not hesitate to write me back if you have more questions.

    All the best,
    Nick
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Robert
    Robert avatar
    23 posts
    Member since:
    Feb 2009

    Posted 04 Jun 2009 Link to this post

    Has this issue been resolved? I am experiencing the same problem.
  5. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 05 Jun 2009 Link to this post

    Hi Robert,

    Thanks for writing. This issue will be resolved in the new release of RadControls for WinForms (Q2 2009) which is scheduled for the end of June. However, there is a quick workaround for this. You can override the following properties (when inheriting RadRibbonForm) and implement them as shown in this code snippet:

    protected override bool ShouldDrawTitle 
          get 
          { 
                    return false
          } 
     
    protected override int CaptionHeight 
         get 
         { 
             if (this.WindowState == FormWindowState.Maximized) 
             { 
                  return SystemInformation.FrameBorderSize.Height; 
             } 
     
             return 0; 
         } 
     


    I hope this helps. Do not hesitate to write back if you need further assistance.

    All the best,
    Deyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top