I had a preceding statement that was supposed to be setting the contents of
a text box into a variable and I had left off the ".Text" The exception
really was caused by that. The reported line number was apparently off by 1?
Thanks for the speedy responses.
Wayne
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:u6**************@tk2msftngp13.phx.gbl...
I am treying the change the background color of textboxes that have
invalid data. I am trying the code shown below but when I run it, I get an
exception?
Any thoughts on why this doesn't work?
Wayne
=================================
Dim normColor As Color = System.Drawing.Color.White
txtLastName.BackColor = normColor