Hello, I'm very new to VB, I have a small problem.
I'm simply trying to allow the user to change the ForeColor of some calculated totals that appear in Read-only text boxes using the Color Dialog box. I'm not sure what I'm doing wrong, any help would be appreciated.
Private Sub ColorToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ColorToolStripMenuItem.Click 'Allow user to select new color for summary totals. With Me.ColorDialog1 .Color = Me.subTotalTextBox.ForeColor .ShowDialog() Me.subTotalTextBox.ForeColor = .Color Me.taxTextBox.ForeColor = .Color Me.totalTextBox.ForeColor = .Color End With
When I select a color the fore color remains the same. If I replace ForeColor with BackColor it works though..this seems so very simple but I just can't seem to get it to work.
Edited 6 Years Ago by ercdill: n/a