Detecting Removable Media?
Jul 4, 2010I seem to be stuck here. How do I loop through all the drives? (This question has been resolved)
NON-WORKING CODE:
Dim InfoDrive As System.IO.DriveInfo
For Each Drive As
[code].....
I seem to be stuck here. How do I loop through all the drives? (This question has been resolved)
NON-WORKING CODE:
Dim InfoDrive As System.IO.DriveInfo
For Each Drive As
[code].....
If there is no floppy disk in the drive, i need the user to be informed, because when it comes to the loop
For Each File As String In My.Computer.FileSystem.GetFiles(Src, FileIO.SearchOption.SearchAllSubDirectories, "*")
My.Computer.FileSystem.CopyFile(File, String.Concat(Dst, Microsoft.VisualBasic.Right(File,
[CODE]...
Does anyone know of a way to contain a nonbreaking space in an html tag to allow me to remove it based on conditions tested during runtime in the code behind?
Basically why I need this: if a condition is satisfied I will have 4 buttons, but if it's not only three. I can remove the button but then I have 4 in-between 2 of the buttons instead of just 2 .
Something like the <del> tag would work if it didn't strike through the text.
Basically I have something like this(propery values not included for simplicity):
<td><button />  <button />  <button />  <button /></td>
I can't have the function in the actual button tag because then it will render the   instead of the button text.
hi, i am writing vb 2010 (VS 2010) application for making bootable pendrive. For this, i want to format USb drive, but i cant find any suitable way. I found the use of SHFormatdrive() function, but is there any suitable way..?
View 6 RepliesI am writing a program in VB 2008 and need to search for SD Card Slots and monitor them. When a card is inserted I want to check for a files and folders and make a button active to upload the data. I take it this needs to be working in the background as I want to be able to perform other functions while monitoring fo the drives.How would I do this and can you check if a removeable drive is SD/MMC, CF, MS, etc?
View 3 RepliesI'm quite new to programming and I am working on a project. The aim is to automatically run a backup process once a removable drive is inserted.So far I've been using this piece of code[code]....
This obviously only runs once unless I use a loop or timer, however both of those will cause the backup process to loop as well.
I am attempting to consume my Zenfolio RSS feed so that i can display the images in the feed. How can i access the url value of the media:thumbnail and media:content elements in my RSS feed? I have googled high and low and not found an answer regarding how to access the url value. There was a similiar unanswered SO post.
Examples of the elements:
<media:thumbnail url="http://riderdesign.net/img/s11/v35/p449020235-2.jpg"
width="400"
[code]....
im working on a little app for my self, to make my life a little more convenient. I have some media keys on my laptop, and I would like to use them with itunes while it is minimized. I found a app that did it for me a long time ago, but cant seem to find it now. But I would like to try my hand at my own, and I've managed to do so, but, my app has to be in focus for it to work. is there any way to still detect when these media keys are pressed while my app is out of focus?
View 9 RepliesI configured access control list for the local drives using System.Security.AccessControl
I need to configure it for removable drive .
I want to write a program that will log all the files that has been copied to removable device. I tried to work with FileSystemWatcher but I didn't get the result.
View 3 Repliesloping application to make bootable USB drive, for that i wants to format usb drive.but I couldn't find any way for the same.I got solution that suggests use of SHformatdrive(), but how can i include that function.I am using VB 2010 (VS2010). Is there any different way
View 8 RepliesI'm not sure if this would be this right place to post this, or even if I should go about trying to do it through my program itself or through the computer's settings on the final EXE file, but anyways, here goes.
I have a synchronization program that syncs my flashdrive to my home computer and (hopefully) my flashdrive to my personal folder on the school computers. What I think would be easiest, though, would be if the program was located on the flashdrive, and would simply "autorun" when I plug it in, instead of having 2 separate instances of the sync program running at school and at home.
Would it be easier (or possible) to code for that from within the program, or with the EXE file's settings?
I am messing around with the WMPLib component provided by Windows Media Player 12 (wmp.dll) in VB.NET with .NET Framework 3.5 SP1.
I am trying to retrieve a media item from my media library based on its name (assuming there are no duplicate names). At the moment, I'm grabbing the entire media library, and looping through every media item, and quitting the loop when I've found the correct media item. This works well (except for when a media item with that name cannot be found), but I was hoping there was a more efficient way of doing this.
Here is my code so far:
Public Class WMPTest
Private myWMP As WMPLib.IWMPCore
Private myMediaCollection As WMPLib.IWMPMediaCollection
[Code]......
So what I really want is a way to optimize findTrack() to do its thing without looping through the entire media library (which could be huge).
I have created a media player (vb.net 2005) using the media player control. Plays fine when using open dialog box and url. I have set my player as the default player but when I click on a media file, the player will open but not play. I am sure it has to do with on open event and coding the url to see the selected file just like any other media player out there.
View 14 Repliesmake media player in vb6 or vb2010.. not using windows media player..
View 1 Repliesi am mukesh i want a form were i have a button now i want to copy what ever i still now changes made in a vb.net from to be stored inside the pendrive just by clicking on the button does it possible i have done a project which is a shops project now my client wants to do that project when he is in shop he will use it in laptop but when he moves to some other location he wants to carry that project in a pendrive since he is not so much educated o he needs only one key which he must press to copy the database from my source my documents to the pendrive does it possible
View 1 RepliesFirst off a short background of the project I am working on- I am developing a program that will be run off removable media (i.e. USB Flash drive). This will be a �virtual desktop� which you will be able to take with you and have the same �desktop� on any system. As we know drive letters can change with each host system the drive is plugged into, I need to be able to determine the path for the flash drive and access a specific folder ( i.e. My Documents)
I have an picture box(representing the icon) placed on my form (form1) and when I click the icon I want to be able to open and view the a specific folder from the portable drive. I need a click event that will determine a dynamic drive letter for a directory on the removable drive and then open that directory in an explorer window.
[Code]....
I am writing a program that expands the usage of the clipboard, but I need to tell when the user has either cut, copied, or pasted something so I can write code accordingly to that. I need to know how I can check to see when the user has entered a command like this.
View 2 RepliesI do not understand why this is not being detected.when I do a test in the immed it comes back true for a match, but the code never run's.[code]
View 2 RepliesI have a query I am creating a Window App in vb.net (4.0) in which I have to use multiple databases although all databases are same with same db structure & stored procedures,just names are different. In the very starting of application, I need to give a option to the user that these are available db & user will select which one to connect & use.
So is it possible to detect how many db are available in the SQL Server through vb.net & how can achieve this (to provide options to the user) What would be the best approach?
I have worked with PHP and other programming languages but I am new to VB. I want to write an application that is run manually every day, and each time it is run it checks for modified and newly created files in a particular folder
View 4 Repliesi want to detect if listview has been updated
eg: there are listview1,listview2 and a button1 .u can send items to listview2 from listview1 .if the listview2 has an item button1 will enable if the listview2 is empty button1 will disable
what is the suitable event for this?? (there is an event called BindingContextChanged is it the suitable event?if so how to use it??)
In the app we use a third party dll for looking up names and addresses.This resides in the system32 directory.Before I try and access this dll I need to be able to find out if it has been registered on the PC.So in short does anyone know the code to be able to check if a dll has been registered in the registry?
View 1 RepliesI am facing problem while in detecting the multiple key combinations ..here is my cod
Private Function keyboardCallBack(ByVal nCode As Integer, ByVal wParam As Integer, ByVal lParam As IntPtr) As IntPtr
[code].....
I have a camera with a LiveView function (images aren�t snapped, but they are directly sent to my computer), which I managed to connect with VB.net, so I have got the image in a picture box on my form.The next thing I want to do, is to gather 3 spots from the image... The spots are all red, something very similar to #FF0000 (it is a camera + lights, etc... some tolerance needed). So, can anyone help me here?
I think the working "check list" could be something like this:
- Get red, green and blue channels separated
- Change green and blue into gray scale (100% blue / green = black, 0% b / g = transparent)
- Put these b / g both into 50% alpha and put them over the red (which means where is both green and blue = black, only one of them = 50% alpha black, none = transparent)
- Somehow select the areas with most red
- Get center of these areas - my points
I was just wondering if it was possible to make vb 2008 detect if there is or is not sound.As in my project i want vb to detect when a video has stopped playing and then do something else. So i waqs thinking maybe i could detect when sound has stopped and then perform my other actions..
View 1 RepliesHow do I detect a ctrl+tab keypress?
Reason for asking: I want to stop a user from changing tabs in a tab control.
I want to be able to detect when the user presses F10 or Ctrl+F10 outside of my program, and upon receiving the key press, it will send text to whatever they currently have selected (e.g. a text box). How can this be accomplished in the simplest way?
View 3 RepliesHow do i detect ( ' and " or better still any char which sql cannot read)in textbox. this is my NOT working code there are codes before else if and after else so ya ...
[Code]....
I'm trying to set up a timer that counts up to ten and starts/resets when the left mouse button is clicked (anywhere on the screen even when the application is in the background). I'm struggling to find a code that suggests it is possible and now I am starting to wonder even if it is possible in VB?
View 4 Replies