maximised RadRibbonForm

12 posts, 0 answers
  1. Afraei
    Afraei avatar
    18 posts
    Member since:
    Jun 2012

    Posted 10 Jun 2012 Link to this post

    Hello,

    I have crated a RadRibbonBar in a RadRibbonForm and changed WindowState property to Maximized but my auto-hide task-bar will not appeared by the mouse. how could I correct it?

    Regards
  2. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 13 Jun 2012 Link to this post

    Hello Arfei,

    Thank you for contacting us.

    This appears to be an issue in RadRibbonForm. I have logged it in our Public Issue Tracking System so you can track it and vote for it. We will address it in a future release. Here is the link to the PITS item.

    For the time being, you can try using the following workaround:
    public partial class Form1 : RadRibbonForm
    {
        public Form1()
        {
            InitializeComponent(); 
        }
        protected override FormControlBehavior InitializeFormBehavior()
        {
            return new MyFormBehavior(this);
        }
        private class MyFormBehavior : RadRibbonFormBehavior
        {
            public MyFormBehavior(IComponentTreeHandler treeHandler)
                : base(treeHandler, true)
            {
     
            }
            public override Padding ClientMargin
            {
                get
                {
                    if (!this.CompositionEffectsEnabled
                    || this.Form.IsDesignMode)
                    {
                        return this.BorderWidth;
                    }
                    else
                    {
                        return new Padding(
                            SystemInformation.FrameBorderSize.Height,
                            0,
                            SystemInformation.FrameBorderSize.Height,
                            SystemInformation.FrameBorderSize.Height + 1);
                    }
                }
            }
        }
    }

    You might notice a thin black line next to the bottom border of the form as a result from this workaround. However, this is the only approach I can suggest by this moment.

    Your Telerik points have been updated for bringing this issue to our attention.

    Feel free to write back if you have any additional questions.

    Greetings,
    Ivan Todorov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Afraei
    Afraei avatar
    18 posts
    Member since:
    Jun 2012

    Posted 13 Jun 2012 Link to this post

    Hello Ivan,

    Thank you so much.

    I want to use RadRibbonBar, so which kinds of Telerik form could I use instead of RadRibbonForm without this problem?

    For now, could you please give me a sample project that includes your suggested workaround?

    I appreciate your kindly help in advance.

    Regards
  5. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 14 Jun 2012 Link to this post

    Hello Afraei,

    RadRibbonForm is designed especially to be used with RadRibbonBar. You can try using RadForm, but it will not look properly when used with a RadRibbonBar - you will get double title bar, two sets of system buttons and the application button will not be positioned where it is expected to be.

    I am sending you a sample project which demonstrates the workaround that I have proposed.

    I hope this helps. Feel free to ask if you have any additional questions.

    All the best,
    Ivan Todorov
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  6. Afraei
    Afraei avatar
    18 posts
    Member since:
    Jun 2012

    Posted 15 Jun 2012 Link to this post

    Hello dear Ivan,

    Firstly, thank you for your help.

    I ran your sample project but still the RadRibbonForm doesn't allow taskbar to appear by mouse.

    Regards
  7. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 19 Jun 2012 Link to this post

    Hello Argei,

    The solution I have send you works correctly on my end. Can you please provide some information about the system you are running on: OS version, language and localization settings, color scheme / OS theme, DPI and resolution settings. This will let me provide you with a proper solution and help us in resolving the issue at a later stage.

    Thank you for your cooperation.

    Kind regards,
    Ivan Todorov
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  8. Afraei
    Afraei avatar
    18 posts
    Member since:
    Jun 2012

    Posted 24 Jun 2012 Link to this post

    Hello,

    Information about the system:
    • OS: XP SP3,
    • Language: english,
    • Color Quality: highest (32 bit)
    • DPI: 96,
    • Resolution: 1280*800

    However, in your sample project didn't exist any *.sln so maybe I did a mistake to use your appreciated sample project. Could you please give me your project by its *.sln?

    Thank you for your kindly help
    Regards

  9. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 27 Jun 2012 Link to this post

    Hi Afraei,

    Thank you for writing back.

    Please try the attached modified application and let me know whether it addresses the issue you experience.

    I am looking forward to your reply.

    Greetings,
    Boryana
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  10. Afraei
    Afraei avatar
    18 posts
    Member since:
    Jun 2012

    Posted 27 Jun 2012 Link to this post

    Hello dear Boryana,

    When i want to start debugging by F5 it shows some errors as below:

    Error    1    The type or namespace name 'UI' does not exist in the namespace 'Telerik.WinControls' (are you missing an assembly reference?)    D:\369483_WindowsFormsApplication48\Form1.cs    8    27    WindowsFormsApplication48
    Error    2    The type or namespace name 'RadRibbonForm' could not be found (are you missing a using directive or an assembly reference?)    D:\369483_WindowsFormsApplication48\Form1.cs    13    34    WindowsFormsApplication48
    Error    3    The type or namespace name 'FormControlBehavior' could not be found (are you missing a using directive or an assembly reference?)    D:\369483_WindowsFormsApplication48\Form1.cs    20    28    WindowsFormsApplication48
    Error    4    The type or namespace name 'RadRibbonFormBehavior' could not be found (are you missing a using directive or an assembly reference?)    D:\369483_WindowsFormsApplication48\Form1.cs    25    40    WindowsFormsApplication48
    Error    5    The type or namespace name 'IComponentTreeHandler' could not be found (are you missing a using directive or an assembly reference?)    D:\369483_WindowsFormsApplication48\Form1.cs    27    35    WindowsFormsApplication48
    Error    6    The type or namespace name 'MinMaxInfo' could not be found (are you missing a using directive or an assembly reference?)    D:\369483_WindowsFormsApplication48\Form1.cs    33    53    WindowsFormsApplication48
    Error    7    The type or namespace name 'UI' does not exist in the namespace 'Telerik.WinControls' (are you missing an assembly reference?)    D:\369483_WindowsFormsApplication48\Form1.Designer.cs    89    37    WindowsFormsApplication48

    How to solve these errors?

    Thank you very much
    Regards
  11. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 02 Jul 2012 Link to this post

    Hello Afraei,

    Thank you for writing back.

    Have you checked your project references? You should have WinControls, WinControls.UI and TelerikCommon dlls added to your project.

    Greetings,
    Boryana
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  12. Afraei
    Afraei avatar
    18 posts
    Member since:
    Jun 2012

    Posted 10 Jan 2013 Link to this post

    Hello dear Boryana,

    Firstly, pardon me for the long delay to reply.

    My problem was solved by your appreciated help but I would like to ask you that which version of Telerik creates (by default) RadRibbonForm without this problem? Or still we have to alter the code manually and should see that thin black line next to the bottom border of the form?
    Is it possible to remove that thin black line?

    Thank you in advance.
    Regards
  13. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 14 Jan 2013 Link to this post

    Hi Afraei,

    The issue has not been addressed yet. You can subscribe to the PITS item I have previously logged and track it for any progress. You can also vote for it to increase its priority. As it gets more votes, we will consider scheduling it for a next release.

    Should you have any other questions, feel free to ask.

    Kind regards,
    Ivan Todorov
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Back to Top
UI for WinForms is Visual Studio 2017 Ready