/// <summary>
        /// Component is the instance of the component or control that
        /// this designer object is associated with. This property is
        /// inherited from System.ComponentModel.ComponentDesigner.
        /// </summary>
        /// <returns></returns>
        public override string GetDesignTimeHtml()
        {
            try
            {
                LanguageSwitcher langSwitcher = (LanguageSwitcher)Component;

                StringWriter   sw = new StringWriter(CultureInfo.CurrentUICulture);               //IFormatProvider should be passed
                HtmlTextWriter tw = new HtmlTextWriter(sw);

                langSwitcher.RenderControl(tw);

                return(sw.ToString());
            }
            catch (Exception ex)
            {
                Debug.WriteLine("Exception occurred rendering Language Switcher at design time: ");
                Debug.WriteLine(ex.Message);
                throw;
            }
        }