I have a textbox and want to change the background color to green when ever it contains text.ie after a keypress. So that when a user types a char, it will immediately change to green and stay green until the user deletes all chars. I want thisctolor change to occur before the update event. I have tried the key events and change event for the control, but they seem to occur before the char is actually stored in the control. (conditional formatting doesnt work as it works when upon leaving the control, whereas I want the change to occur while still in the control)
I have tried the following for all key events:
if isnull(txtbox) then txtbox.backcolor=vbwhite else txtbox.backcolor=green
if isempty(txtbox) then txtbox.backcolor=vbwhite else txtbox.backcolor=green
I have tried the following for all key events:
if isnull(txtbox) then txtbox.backcolor=vbwhite else txtbox.backcolor=green
if isempty(txtbox) then txtbox.backcolor=vbwhite else txtbox.backcolor=green