A method for accurately detecting the directional shift of a beam is proposed and the experiment is described, which is a new application of the Tarbot effect. The directional shift of a semiconductor laser beam has been detected and the effect of optical devices on the stability of optical beam direction are discussed.