where to write it exactly..as a code of the list box..or the the form it self or the button?
dude...learn how to use em with readme's, books and tutorials.
if you dont know here to put an active code, or (that code looks as if you want it to run at startup if its from recources)