[quoted text clipped - 22 lines]
I tried and verified, this works and opens safe remove dialog.
Shell("RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll")
hi! it's me again! i just wanna ask when i play my vb program and when i open
a file from the usb in the openfiledialog , in windows xp why cant it be
safely removed? it will say it cant be stopped.. but in vista, it can be
safely removed.
Hi,
There may be other reasons, but the closest reason is to me is your vb
program or the file/component associated with your vb program is still
in use.
Assuming you're using same code/program on both operating systems,
make sure you close/dispose your program's resources properly using
correct syntax (i recommend "using-end using" statement for auto
resource disposal in your code block).
Another reason maybe that another program is accessing the file which
is used by your vb app, that maybe the reason of failure of a safe-
removal because of multi-usage. For example some storage related 3rd
party apps and their services can cause that problem such as SMART
monitor programs, antivirus trackers, system tools etc.
Don't know much about VB's behaviours on Vista, but the logic must be
same. Make sure you are running 1:1 same programs on background on XP
and Vista to have a more proper test. There may be extra programs that
causing the problem on XP.
Hope this helps.
Regards...