|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Preventing Explorer Window from Displaying when Pen Drive InsertedI am in the process of writing an application that detects the
insertion of a pen drive, and if a specific folder structure exists, it shows a form containing data. The problem is that when I insert the pen drive on some machines running Windows XP, a windows explorer window appears containing the contents of the pen drive. This window covers my application's window, even if my application window opens a few seconds later. How do I programmatically prevent this Explorer window from appearing? Is there some Registry setting? Is it a specific setting for this particular pen drive? I've tried playing around with the AutoPlay tab in the properties dialog for that particular drive, and it doesn't seem to help. Thanks in advance for any help anyone can provide! -Chad Hi,
Some auto play info on windows xp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/Shell/programmersguide/shell_basics/shell_basics_extending/autoplay/autoplay2k_cookbook.asp http://windowsxp.mvps.org/addautoplay.htm Ken ----------------- Show quoteHide quote "Chad" <chad.ca***@gmail.com> wrote in message news:1141773615.839260.31890@j33g2000cwa.googlegroups.com... >I am in the process of writing an application that detects the > insertion of a pen drive, and if a specific folder structure exists, it > shows a form containing data. > > The problem is that when I insert the pen drive on some machines > running Windows XP, a windows explorer window appears containing the > contents of the pen drive. This window covers my application's window, > even if my application window opens a few seconds later. > > How do I programmatically prevent this Explorer window from appearing? > Is there some Registry setting? Is it a specific setting for this > particular pen drive? I've tried playing around with the AutoPlay tab > in the properties dialog for that particular drive, and it doesn't seem > to help. > > Thanks in advance for any help anyone can provide! > -Chad > After looking through the autoplay documentation you provided, it looks
like the problem I'm having isn't with autoplay. I have manually set the autoplay info for my pen drive to "Take No Action", for every file type. But when I plug in the pen drive, it still opens the Windows Explorer folder list. There has to be something else that is causing this to happen, since my autoplay settings are set to take no action. Has anybody had this problem before? Thanks, Chad
"VB (9) Rocks" slide show
Progressbar and treeview stops refreshing ADO With SQL Transactions Optimizing Repeated PictureBox.Paints padding text field with blank in MS Access vs OLEDB Jet 4.0 control collection Parsing XML strings VB doesn't allow temp tables in Stored Procedures? Copy files and progressbar upload multiple files |
|||||||||||||||||||||||