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

Rad form titlebar

9 Answers 782 Views
TitleBar
This is a migrated thread and some comments may be shown as answers.
Renjith Lal
Top achievements
Rank 1
Renjith Lal asked on 03 Aug 2009, 08:22 PM
1. Is there any way to remove the titlebar from a radform or increase the height of the titlebar (formelement.titlebar)? i tried 

 

this.FormElement.TitleBar.Visibility = ElementVisibility.Collapsed; in the form load, but it shows an empty area initially until a resize or refersh.

 


2. How to add leftiamge, rightimage and background image in titlebars? (both radtitlebar and formelement.titlebar )

I tried both scenarios and could not success.

thanks
Ren

9 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 04 Aug 2009, 07:52 AM
Hello Renjith,

Thanks for contacting us and for your question.

1. In order to hide the Title Bar of a RadForm, you should set the FormBorderStyle property of the Form to None. The FormBorderStyle property mimics the behavior of the same property of a standard windows form.

2. Open Edit UI Elements dialog from the smart tag and set images for each ImagePrimitive node from the tree on the left. You can set an image to all buttons on the right (close, minimize, maximize) and to the application icon on the left. Unfortunately you cannot set an image for the whole titlebar.

I hope that helps. Write back if you have further questions.  

Sincerely yours,
Nick
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.
0
Renjith Lal
Top achievements
Rank 1
answered on 04 Aug 2009, 04:42 PM
Hello Nick,

Thanks for the reply. My actual requirement is to increase the height of the titlebar to place an image in it. So I guess we can not do it in radform. I know that I can remove the titlebar by setting the formborderstyle to none but, primarily it removes the border which I don't want to. Is there any way to create border (borderprimitive) for a radform with borderstyle is none?
0
Nick
Telerik team
answered on 05 Aug 2009, 09:38 AM
Hello Renjith Lal,

You can increase the height using the following code snippet:

this.FormElement.TitleBar.MinSize = new Size(10, 70); 

As to your second question, you can set the BorderTickness to 0 which works to some degree.

this.FormElement.BorderThickness = new Padding(0, 0, 0, 0); 
 

Please write us back if you are unhappy with that solution. We are currently not aware of any better work-around but we will think further about your scenario.

Regards,
Nick
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.
0
Lorenzo
Top achievements
Rank 1
answered on 14 Nov 2011, 02:43 PM
Hi,

I need to use RadForm but without the TitleBar.
I wanna keep the resize funcitionalities and use my custom User Control as TitleBar.

So the solution to put 
FormBorderStyle = FormBorderStyle.None;
is not suitable in my scenario.

Also I tried to use
this.FormElement.TitleBar.Visibility = ElementVisibility.Collapsed;
but nothing happen.

I standard windows form i can obtain my goals simply using the following code inside my form:

this.Text = "";
this.MaximizeBox = false;
this.MinimizeBox = false;
this.ControlBox = false;

Is there any way to completely remove titleBar from a RadForm and preserving resize functionality?

Thanks in advance,
Lorenzo

0
Stefan
Telerik team
answered on 17 Nov 2011, 03:01 PM
Hi Lorenzo,

Thank you for writing.

In fact, the approach taken to collapse the title bar is the correct one to use on RadForm. However, it seems that we currently experience some issue, and the title bar is not collapsing unless the form is resized. I have added this issue into our PITS system and we will address it in a future release. Here is a link to the item, where you can add your vote for it.

Your Telerik points have been updated as a token of our gratitude. 

Meanwhile, you can use the following code snippet with RadForm, in order to hide the title bar:
protected override void OnShown(EventArgs e)
{
    base.OnShown(e);
    this.FormElement.TitleBar.Visibility = ElementVisibility.Collapsed;
}

Alternatively, you can use ShapedForm, which is a form without a title bar and you will have the required behavior.

Greetings,
Stefan
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 30 Nov 2018, 06:25 AM
hello how to disable auto scroll option in rad form....child forms in mdi parent is show in scroll bar when its moving...auto scroll is also false but its showing scroll bars when its moving....how to rectify this ?
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 30 Nov 2018, 06:25 AM
hello how to disable auto scroll option in rad form....child forms in mdi parent is showing scroll bar when its moving...auto scroll is also false but its showing scroll bars when its moving....how to rectify this ?
0
Hristo
Telerik team
answered on 30 Nov 2018, 08:33 AM
Hello,

I am not able to observe the reported on your end behavior. As this question is not related to the original question, I kindly ask you to open a support ticket or a new forum post and to provide additional information about your actual scenario A code snippet demonstrating your local setup would help. If possible please also send us a short video showing the scrollbars while moving the children.

Thank you for understanding.

Regards,
Hristo
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.

0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 30 Nov 2018, 11:27 AM
how to disable rad form vertical and horizontal scroll bar ?
Tags
TitleBar
Asked by
Renjith Lal
Top achievements
Rank 1
Answers by
Nick
Telerik team
Renjith Lal
Top achievements
Rank 1
Lorenzo
Top achievements
Rank 1
Stefan
Telerik team
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
Hristo
Telerik team
Share this question
or