Hide window frame

7 posts, 0 answers
  1. wuniat
    wuniat avatar
    2 posts
    Member since:
    Jan 2007

    Posted 30 Jan 2007 Link to this post

    When using the ribbon control it has its own title bar but I can't figure out how to delete the standard window title bar and frame to look like the Office2007 apps.  The example also skins the standard window frame but I can't follow how it works either.  Any help is appreciated during this evaluation period.
  2. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 31 Jan 2007 Link to this post

    Hi Wayne,
     
    To hide the standard title bar and to make your application look like Office 2007 you should inherit your form from ShapedForm. Here is a sample code you can use:


    using System;
    using
    System.Windows.Forms;
    using
    Telerik.WinControls;
    using
    Telerik.WinControls.UI;

    public partial class Form1: ShapedForm
    {
          public Form9()
          {
                this.Shape = new RoundRectShape(5);
                this.BorderColor = Color.Blue;
                this.BorderWidth = 2;

                InitializeComponent();
          }     

    I have attached a sample application for your reference as well.


    Best wishes,
    Tsvetan Raikov
    the telerik team
  3. UI for WinForms is Visual Studio 2017 Ready
  4. wuniat
    wuniat avatar
    2 posts
    Member since:
    Jan 2007

    Posted 31 Jan 2007 Link to this post

    Excellent!  Thanks Tsvetan.
  5. Daniel
    Daniel avatar
    4 posts
    Member since:
    Feb 2008

    Posted 06 Feb 2008 Link to this post

    Can you explain how it will work in vb.NET.

    [edit]
    Ok now it works. But now I`ve got a problem, when I maximize my application. Then the programm is shown over the size of the screen. I think about 3 or 4 pixels. How can i fix this?
    [/edit]

    Thanks Daniel
  6. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 06 Feb 2008 Link to this post

    Hello Daniel,

    Can you confirm that the project that I have attached with references to v5.0.0.0 still produces this issue? I was not able to reproduce it locally, so please make sure that your video card and monitor settings are properly adjusted in order to view the entire client area.

    If you need additional assistance, do not hesitate to contact us.

    Kind regards,
    Nikolay
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Daniel
    Daniel avatar
    4 posts
    Member since:
    Feb 2008

    Posted 06 Feb 2008 Link to this post

    Hello,

    the Problem is the same. I tryed it in VSS 2005 and also in VSS 2008 Express. And I tryed it on diverent workstations. Always with the same result.

    You can see it here. Hardcopy

    Code of Programm.vb
    Imports Microsoft.VisualBasic 
    Imports System 
    Imports System.Collections.Generic 
    Imports System.Windows.Forms 
    Namespace WindowsApplication1 
        Friend Class Program 
            ''' <summary> 
            ''' The main entry point for the application. 
            ''' </summary> 
            Private Sub New() 
            End Sub 
            <STAThread()> _ 
            Shared Sub Main() 
                Application.EnableVisualStyles() 
                Application.SetCompatibleTextRenderingDefault(False
                Application.Run(New Form1()) 
            End Sub 
        End Class 
    End Namespace 
     

    Code of Form1.vb
    Imports System 
    Imports System.Windows.Forms 
    Imports Telerik.WinControls 
    Imports Telerik.WinControls.UI 
     
     
    Partial Public Class Form1 
        Inherits ShapedForm 
        Public Sub form1() 
            InitializeComponent() 
        End Sub 
    End Class 

    I use the RibbonBar Component from the VSS 2008 Express Goods.

    Thx Daniel
  8. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 07 Feb 2008 Link to this post

    Hello Daniel,

    You experience this issue because you are using an older version of RadRibbonBar. We have fixed it and the issue does not persist in the current release. Please, find additional information in the support ticket about wiring the Exit button in your Client.Net account.

    Regards,
    Nikolay
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for WinForms is Visual Studio 2017 Ready