I had this problem months ago and I had solved it by reformatting it, considering that there weren't much files and folders in my pendrive. Somehow by doing so, the autorun function seems to work once again and the "Open With" dialogue box never seems to appear anymore.
cannot open pen drive/no autorun, need to right click n open