This is a migrated thread and some comments may be shown as answers.

Hide window frame

6 Answers 314 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
wuniat
Top achievements
Rank 1
wuniat asked on 31 Jan 2007, 04:27 AM
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.

6 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 31 Jan 2007, 09:02 AM
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
0
wuniat
Top achievements
Rank 1
answered on 31 Jan 2007, 04:45 PM
Excellent!  Thanks Tsvetan.
0
Daniel
Top achievements
Rank 1
answered on 06 Feb 2008, 09:08 AM
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
0
Nikolay
Telerik team
answered on 06 Feb 2008, 11:47 AM
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
0
Daniel
Top achievements
Rank 1
answered on 06 Feb 2008, 12:23 PM
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
0
Nikolay
Telerik team
answered on 07 Feb 2008, 09:15 AM
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
Tags
RibbonBar
Asked by
wuniat
Top achievements
Rank 1
Answers by
Jack
Telerik team
wuniat
Top achievements
Rank 1
Daniel
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or