Normally when the TV is powered on you set your remote into search mode and when it switches the TV off then it has discovered the code and it should be able then to be used. You do need the instruction leaflet for the universal remote of course as these set-ups can require the use all the fingers of both hands to get there!
John
December 2009