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

How do I set the Theme to RadColorDialog

3 Answers 159 Views
ColorDialog
This is a migrated thread and some comments may be shown as answers.
Filleau
Top achievements
Rank 1
Filleau asked on 18 Apr 2012, 02:50 PM
Hi,

Working with the last Winform Q1-2012 and Vb.Net, I'm trying to set the theme "Metro" when the RadColorDialog is showed.
Searching in forum and documention I havn't found how to do this.

Can somebody can help me ?

Thanks

3 Answers, 1 is accepted

Sort by
1
Accepted
Richard Slade
Top achievements
Rank 2
answered on 19 Apr 2012, 11:18 AM
Hello, 

Assuming that you have added a Metro Theme component to your form, and you are launching the RadColorDialogForm from a RadButton click, then this will theme the dialogue. 

Remember to mark as answer if this helps, and of course let me know if you need further help

Private Sub RadButton1_Click(sender As System.Object, e As System.EventArgs) Handles RadButton1.Click
    Dim color As New Telerik.WinControls.UI.RadColorDialogForm()
    color.ThemeName = "TelerikMetro"
    If color.ShowDialog() = Windows.Forms.DialogResult.OK Then
        Telerik.WinControls.RadMessageBox.Show(color.SelectedColor.ToString())
    End If
End Sub


thanks
Richard
0
Filleau
Top achievements
Rank 1
answered on 22 Apr 2012, 10:33 AM
Thanks Richard

It Work. But il will be more easy to be able to set the theme in the design mode...
0
Stefan
Telerik team
answered on 24 Apr 2012, 02:41 PM
Hello Mr Filleau, 

RadColorDialog is a Component rather than a control and this is the reason it does not have a ThemeName property. Please consider Richard's suggestion for setting the theme.

I hope this helps.

Kind regards,
Stefan
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
ColorDialog
Asked by
Filleau
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Filleau
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or