Or alternatively, instead of hard-coding the new colour, you could define a new custom property of your base class called (for example)
nSelectedColor.
The in the got focus of your base textbox class
this.backcolor = this.nSelectedBackcolor
return dodefault()
and in the lostfocus
this.ResetToDefault('BackColor')
return dodefault()
>>When a cursor moves to a field, can i automaticly change the background color, if yes, what's the way to do that?
>
>In the get focus of teh Textbox put:
>
>
This.BackColor = rgb(255,0,0)
>
>and in the lost focus put:
>
>
This.BackColor = rgb(255,255,255)
If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?
From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."
All my FoxTalk and other articles are available on my
web site.
Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.