I did code 1040 and it worked perfectly. I have a Dynex 32" 720p LCD.
I found the code 1023 on fixya.com and it works! However, the "TV/VIDEO" will not switch between the inputs on the TV. All other functions work flawlessly.