How do I set the Theme to RadColorDialog

4 posts, 1 answers
  1. Filleau
    Filleau avatar
    114 posts
    Member since:
    Jun 2006

    Posted 18 Apr 2012 Link to this post


    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 ?

  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 19 Apr 2012 Link to this post


    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
        End If
    End Sub

  3. Filleau
    Filleau avatar
    114 posts
    Member since:
    Jun 2006

    Posted 22 Apr 2012 Link to this post

    Thanks Richard

    It Work. But il will be more easy to be able to set the theme in the design mode...
  4. Stefan
    Stefan avatar
    2911 posts

    Posted 24 Apr 2012 Link to this post

    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,
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top