Make Photo Viewer Open When User Open Drive C And Get All Photo In The Drive To Be Shown In It?

Jul 12, 2011

I design photo viewer app using this code

[Code]...

now how to make my photo viewer open when user open drive C and get all photo in the drive to be shown in it ?

View 14 Replies


ADVERTISEMENT

Open A Photo With The Default Photo Editor?

Jan 28, 2008

-VB 2008-

I'm designing a very simple photo album program and need to be able to open an image using the system's default photo editor.

View 10 Replies

Forms :: Determine A Dynamic Drive Letter For A Directory On The Removable Drive And Then Open That Directory In An Explorer Window

Feb 19, 2009

First 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]....

View 1 Replies

How To Have App Open From Jump Drive Or Cd Drive

May 1, 2010

how to open an .exe file from a that is in a certain file, what i am trying to do is create a program that will be portable-via jump drive or cd drive, the reason i feel stupid is that I did not realize that visual basic and vb.net are two different animals- I was trying to use app.path for days- then came across a post that set me straight that I can not use it.[code]

View 4 Replies

Open .rtf Files Into RTB From C Drive?

Jul 31, 2011

I'm making a program which will open .rtf files into a rich text box by pressing a button. I can't seem to make it work. I'm trying to make the Go Button on Form 1 open the selected rtf file and put it into the rich text box on form 2.

Dim file As String = (destination)
ReadFrm.ShowDialog()
My.Forms.ReadFrm.bookrtb.Text = file

Nothing seems to happen It's trying to read from the C:\Program Files directory.

View 2 Replies

Open A Folder From CD Drive Using .NET?

Jul 17, 2010

I'm trying to write a program that opens a folder from the CD disk when a button is clicked. The program will be run from a CD, and aims to open a certain folder. However, I can't use "shell "explorer...."" because the drive letter will change between different computers. Is there a way to open the folder straight from the CD in VB.NET

View 3 Replies

Make A Tool That Will Assign USB Pen Drive A Drive Letter?

Oct 13, 2009

I want to make a tool that will assign a USB pen drive a drive letter, I am using WMI to acknowledge the device being plugged in, I can pull the deviceID, name, etc now I just need to work out how to assign the device to a drive and I just cant figure it out

View 4 Replies

Open .exe From A Predetermined Location On Any Drive?

May 1, 2010

I have been trying to figure out how to open an .exe file from a that is in a certain file, what i am trying to do is create a program that will be portable-via jump drive or cd drive, the reason i feel stupid is that I did not realize that visual basic and vb.net are two different animals- I was trying to use app.path for days- then came across a post that set me straight that I can not use ituch for what I need

system.diagnostics.process.start("C:
od.exe")
as long as nod.exe is in my c: -then it works

[code].....

View 1 Replies

Open A File Without Specifying Drive Letter?

Mar 12, 2010

i was wondering if there is any way to read from a file in the application directory without specifying the drive letter. Here's what i have:Dim var var = My.Computer.FileSystem.ReadAllText("c:appdirectoryfilename")

If i leave off 'c:' it looks for it in system 32 or something. why can't i just say

ReadAllText("filename")

View 6 Replies

Open Cmd And Then Change To An Other Hard Drive?

Dec 17, 2010

I want my code to open cmd and then change to an other hard drive. But instead bends lots of cmd come up.

I don't know what the problem is, but here is the code.

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code].....

View 5 Replies

Open/Close Drive With The Single Button?

Feb 16, 2011

i am currently using this code to open and close my drive in VB. However i want to make a single button to open the drive if its close and to close it if its open.

Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal command As String, ByVal buffer As String, ByVal bufferSize As Int32, ByVal hwndCallback As IntPtr) As Int32

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim lRet As Long lRet = mciSendString("set CDAudio door open", vbNullString, 0, 0)

End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)HandlesButton2.Click

Dim lRet As Long lRet = mciSendString("set CDAudio door closed", vbNullString, 0, 0)

View 10 Replies

Script To Open And Close Cd Drive In A Loop?

Mar 18, 2011

i am in need a script to open and close cd drive in a loop i already got this :

[code]...

But i need to start it with a button in visual basic 2008

View 2 Replies

DB/Reporting :: Can't Open Access Database On Mapped Drive

Dec 8, 2008

I can't open an Access database on a mapped drive. However it works if I use the UNC path. how I can get this to work? See the code below for an example of what works and what doesn't...

Code:
mConnString = "provider=Microsoft.Jet.OLEDB.4.0;Data Source=\tiger-2000dvb_mt7MTrackBE.mdb" ' This works
mConnString = "provider=Microsoft.Jet.OLEDB.4.0;Data Source=T:vb_mt7MTrackBE.mdb" ' this does not work
Dim objConn As New OleDbConnection(mConnString)

[code].....

The error message I receive is...'T:vb_mt7MTrackBE.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.I've done the obvious and verified that t:vb_mt7MtrackBE.mdb is a valid path.

View 3 Replies

Open File Dialog Not Showing Network Locations And Mapped Drive?

Jun 3, 2009

I am doing setup project in VS 2008. I used custom action to select file from local drives.On the button click of custom action form, I am launching Open file dialog...asofdGetNetPath.ShowDialogWhen I run the setup on Vista, and click the button to open the openFileDialog, it hanged, form becomes non responsive and I have to cancel the setup.on debugging I got following error"Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your main function has STAThreadAttribute marked in it. This exception is only raised if a debugger is attached to the process."

View 2 Replies

Make App View The Photo That Right Clicked On It?

Jul 11, 2011

I use this code to create shortcut to my app in context menu

Imports
Microsoft.Win32
Public Shared

[Code]....

View 4 Replies

Slide Show - Allow User To Set Delay Time For Each Photo?

Apr 26, 2011

I was asked to create a slide show in Visual Basic 2010 that had to meet certain requirements but I've run into a few difficulties. I have a slide show that works but it doesn't meet my friends standard and I'm not sure how to go about this process.He asked me to meet these requirements: The Slide Show Project requirements of your project are:

1. The use of if statements.

2. The use of arrays.

3. The use of loops.

4. The use of graphics.

5. The use of key/mouse controls.

6. The use of images.

7. Allow user to set delay time for each photo.

8. Transition effects 1: Fade in, fade out

9. Transition effects 2: Fly in, Fly out

10. The use of timers.

11. Borderless, always centered.

12. Introduction Screen, Credit Screen.

13. innovations, special feature.

The code that I had previously came up with was as follows:

Public Class Form1
Private ImageFileNames As New List(Of String)
Private CurrentImage As Integer = -1[code].....

I pre-loaded my own photos into the slide show but I just want to know how to right this code in order to satisfy my friend.

View 2 Replies

VS 2010 Control To Make A Calendar Grid Like (Photo Inside)?

Jun 28, 2010

i'm working on a calendar and i'm stuck on how to make the grid (where the user put the events )i want to make my calendar look like this!

View 4 Replies

VB 2010 Make A Portable Program Which Has A Form With A Few Different Pictures Like A Photo Gallery?

Oct 23, 2010

Im make a portable program which has a form with a few different pictures like a photo gallery.when you hover the mouse over a picture it will appear enlarged in a floating box infront of the form. Then when the the mouse is taken away from this floating box the box will disapear and leave you with the picture gallery again?

View 3 Replies

WMI To Get Drive Letter Association With Physical Drive Path Misses CDROMs?

Feb 19, 2012

I'm running the following WMI script to get the associations between drive letters and physical drives on the system, but for some reason it omits CDROMs/DVD-ROMs. Can someone tell me how to get those as well?

Code:
ComputerName = "."
Set wmiServices = GetObject _
("winmgmts:{impersonationLevel=Impersonate}!//" & ComputerName)
Set wmiDiskDrives = wmiServices.ExecQuery _
("SELECT DeviceID FROM Win32_DiskDrive")

[Code3]...

View 12 Replies

Finding Physical Drive Number Using Drive Letter?

Jun 16, 2009

I have a program that allows the user to enter a drive letter into a text box. The program then takes the letter and find the physical drive number (i.e. deviceharddisk3..). It then stripes out everything and leaves me with the number 3.

In VB6 I used mDrive.bas from vbAccelerator.com and it worked perfectly. I have been all over the internet and back and cannot find a solution written in VB.NET.

View 14 Replies

Reading And Writing Files On External Hard Drive, Code To Ensure SQL Or Data Read/write Execution In Case Of Periodic Drive Reconnect?

Dec 18, 2010

The drive is connected via USB and the problem I'm having is that, periodically, while my code is executing, the usb drive seems to disconnect and reconnect. (Nothing to do with the program, but the drive itself).I want to find a way to prevent these temporary drive reconnects from interrupting my code. IE, i want to insure that whatever read or write that is requested is actually executed even in the case of a temporary drive interruption.

View 1 Replies

Determine If A Drive Is Local Or A Network Drive?

Dec 10, 2008

Does anyone know if there is a way to determine if a drive is local or a network drive?

View 1 Replies

Getting Physical Drive Number From Drive Letter?

Jun 17, 2009

I am trying to get the physical drive (device) number from the drive letter. If the user inputs the drive letter C the program will find the associated physical device number. For example if I input C then the result needs to be \Device\HardDrive1\... Some call it NT Device Name; I think. I have the code for VB6 from vbAccelerator, which works perfectly, but it does not work in VB.NET. My question is there a simple way of pulling the drive info that contains the drive letter and the physical device number. I have searched the internet and found nothing for VB.NET. I would post code but I have nothing for .NET.

View 1 Replies

How Can Read Data From USB Flash Drive Or Pen Drive

Sep 29, 2011

USB flash drive or pen drive in vb.net...

View 14 Replies

Physical Drive Number From Drive Letter

Jun 16, 2009

I have a program I am converting from VB6 to VB.NET and I am stuck at the very last piece of code. I need to determine what physical device number is associated with the drive letter.

The program takes the drive letter from a text box and goes and finds the device number (i.e. deviceharddrive3...) and strips out everything leaving me with the devicer number; in this case the number 3. I have searched the internet to and fro and found nothing in VB.NET.

My program in VB6 uses a .bas module from vbaccelerator.com called mDrive.bas and works great. I can't figure out how to convert it over to VB.NET.

View 6 Replies

.net - Get The Drive Letter Of CD Drive From List

Mar 12, 2011

I am using the following code to get a list of the letters for each drive on my computer. I want to get the drive letter of CD Drive from this list. The code I am using to get list is as below:

[Code]...

View 2 Replies

Check If Logical Drive Is CD/DVD Drive

Jun 16, 2009

Is it possible to check if a Logical device gathered through a WMI search request is a CD/DVD Drive? Right now, I can get the path of every Win32_LogicalDisk through WMI, but E: (for me) is my DVD drive and unless there is a disc, my program fails because it tries to count the number of folders/files on the disc.

Ultimately, I'd like to be able to tell if it is a CD/DVD drive then check to see if there is a disc there before I do anything else to it. Can it be done using WMI?

View 3 Replies

Detect CD Drive Regardless Of Drive Letter?

Jan 2, 2010

I have a function that copies files from a CD to my HDD:CopyFiles(CD_Drive, FullPath & "")

The problem is that the Drive letter "I:" is not consistent. Sometimes when I connect and disconnect external devices, the CD Drive letter changes and then my code doesn't work unless I open the project, change the letter "I" and recompile.What code can I use that will ALWAYS detect my CD Drive, regardless of the drive letter? (Like for instance, NERO will detect and burn CDs regardless of the drive letter)

dp.SyntaxHighlighter.ClipboardSwf = '/dp.SyntaxHighlighter/Scripts/clipboard.swf'
dp.SyntaxHighlighter.HighlightAll('4e1b98200b534bcfb11430c4ef5e5987')

View 3 Replies

Find Out Which Drive Is The Disk Drive?

Jun 12, 2010

I want my program to find the disk drive. I just do not know how to find it programmically? Can anyone help, please? This should be pretty easy, right?

View 12 Replies

Run A Form From A Jump Drive Or Cd Drive?

May 1, 2010

I have created a form that I would like to run from a jump drive, or cd drive, were the drive letter will never be the same-

Application.StartupPath is the answer I have come up with- Implementing it is difficult for me- all the examples I have seen retrieves the path and imports it to a textbox. What I got is a form will start a .exe of a portable program- ( that will be located on the jump drive, or cd)

I have created a form that will -when a button is pressed- execute an .exe to a program that will also be on the jump drive. how to do this from start to finish on how to run an .exe from a file that will not ever be located on the same drive-

I should add I'am using visual studios 2010, visual basic.net

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved