You'd need to give us more of a clue than wanting "sample code".
For example... What do you want the sample code to do?
If you can provide more detail, people can help you out... but unfortunately we don't have anything to go on at the moment
Welcome to Daniweb though