DOes anyone know how to control the webbrowser control such that it only executes a command/statement once?

DocumentComplete, DownloadComplete and NavigateComplete2 seem to execute more than one time.

What I want to do is once the webbrowser has finished loading, it executes another instruction only once.

Any help is appreciated..