Quantcast
Channel: Our ComponentOne » All Posts
Viewing all articles
Browse latest Browse all 14170

c1TextBox foreColor

$
0
0

Hi Support

I have the following textbox on a user control

this.txtBlogText.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtBlogText.BorderColor = System.Drawing.SystemColors.Control;
this.txtBlogText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtBlogText.Location = new System.Drawing.Point(7, 34);
this.txtBlogText.Multiline = true;
this.txtBlogText.Name = "txtBlogText";
this.txtBlogText.Size = new System.Drawing.Size(631, 18);
this.txtBlogText.TabIndex = 5;
this.txtBlogText.TabStop = false;
this.txtBlogText.Tag = null;
this.txtBlogText.TextChanged += new System.EventHandler(this.txtComments_TextChanged);

This is one of two text boxes (the other txtBlogEmployee which is a single fixed line), the one noted above is multi line. During the load of the control data is passed, during this the textboxes have the following code in a set constructor

txtBlogEmployee.ReadOnly = false;
txtBlogEmployee.Text = m_BL_Employee;
txtBlogEmployee.ReadOnly = true;

Both controls have white backcolors (Syste.Control), on the single line control the control remains white after it is populated, the multi line goes grey and I need this additional code

txtBlogText.ReadOnly = true;
txtBlogText.BackColor = Color.White;

Is this a bug?

Kind Regards
Scott


Viewing all articles
Browse latest Browse all 14170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>