public TextBoxWithImage(string accessibleName, string imageResource)
        {
            Image image = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream(imageResource));

            m_pictureBox.Image          = image;
            m_pictureBox.Width          = image.Width;
            m_pictureBox.Height         = image.Height;
            m_pictureBox.Click         += m_pictureBox_Click;
            m_pictureBox.AccessibleName = ReportPreviewStrings.DropDownIconAccessibleName(accessibleName);
            m_textBox.TextChanged      += m_textBox_TextChanged;
            m_textBox.AccessibleName    = accessibleName;
            base.Controls.Add(m_textBox);
            base.Controls.Add(m_pictureBox);
            base.Height = Math.Max(m_textBox.Height + 2, m_pictureBox.Height);
            base.Width  = 170;
        }
 public string CredentialMissingUserNameError(string dataSourcePrompt)
 {
     return(GetLocalizedString(ReportPreviewStrings.MissingCredentials(dataSourcePrompt), (ReportViewerMessages2 != null) ? ReportViewerMessages2.CredentialMissingUserNameError(dataSourcePrompt) : null));
 }
 public string ParameterMissingValueError(string parameterPrompt)
 {
     return(GetLocalizedString(ReportPreviewStrings.MissingValueClientError(parameterPrompt), (ReportViewerMessages2 != null) ? ReportViewerMessages2.ParameterMissingValueError(parameterPrompt) : null));
 }