Access The Files That Are Open By Another Program On The Computer?
Sep 23, 2009
I have a program that needs to access the files that are open by another program on the computer.When my application comes up I can easily see if the other application is running with the .net Process.GetProcessesByName method
Dim MyProcesses() as Process = GetProcessesByName("AnApplication")
For Each Instance as Process in MyProcesses
If MsgBox("application is running - do you want to end it?", MsgBoxStyle.YesNo or MsgBoxStyle.Question, "Warning") = MsgBoxResult.Yes then
[code].....
The problem is that the Instance.Kill does not allow the application to end gracefully. In VB6 you could use the SendMessage API to send a close message to the application and it would end gracefully - i.e. give the user the normal closing prompt. This just slays the application - leaving any open files in their potentially incomplete state, etc.
View 4 Replies
ADVERTISEMENT
Nov 18, 2010
how to transfer files from 1. computer to the computer with the program made in visual studio 2008 (visual basic)
View 3 Replies
Aug 26, 2010
Can anyone provide the resource to learn making connection between computers over the LAN and retrieve files? EDIT: And can I browse the folders like its done in the local machine?
View 3 Replies
Apr 23, 2010
I am a programmer Mtbdy in Visual Basic Dot Net I want to ask a question What are the files that must be packed on to run the program in each computer?
View 3 Replies
Jun 28, 2010
I've a small home network and i want to make a program that's transforming files between two computer and make me chat with all computers.
View 1 Replies
Jun 2, 2012
i have a audio program that will play some mp3 files from a folder. but the audio files together take up about 1 gb. it is possible to let my program download the files from the internet after it is installed on a computer. to a specific folder..?
View 3 Replies
Mar 18, 2012
I made a program that i want to run on computers at school and it utalizes a MySQL database. When i try to run it the program does not work as it cannot access the database. I open the code up on my computer at school and it has errors saying ti does nto recognize the MySQL code as it does not have it in its .Net library. So i try to download it into the library but that does not work. So my question is, will programs using any kind of database not work unless the user installs the needed add on, weather it be a .Net library add on or a java add on for MySQL? That cant be right it.
View 4 Replies
Mar 25, 2009
I have been automating MS Project with VB.Net. I can open .mpp files and access all the objects I need. Now the customer has asked to open these files from Project Server. I cannot get MS Project to Open with the server connection.
View 3 Replies
Jan 18, 2009
Ok first i want to say im sorry if i put this inthe wrong section i have no idea what the thing im doing is called "I call it a notepad" Ok i made a notepad saved it ect now i got the .exe file i tryed making that my default notepad but when i click on a .txt file i get an error massage
C:Documentsand SettingsUserDesktopTry.txt is not a valid Win32 application
i dont get the point in making a program and not using it..The Notepad is only a simple one "My first project" Only has features like
[Code]...
Edit 1 If anyone can tell me the diffrence between TextBox and RichTextBox would be nice also
View 19 Replies
Sep 20, 2010
I have a program where a lot of the required information for it is stored in text files. I simply read this information into large arrays. However, I don't think it's necessary to load all the information each time. Rather, it would be more efficient if I could simply search through a list of items to find the one I need and then use the data from it, or to find a similar name and use it elsewhere.
Would I be right in using a database? And is database programming done in SQL? I have a book on it telling me to use the SQL Server (IIRC), so I shouldn't be doing it in the VB.NET Express GUI?
Here's an example of what I would do:
Hex = 03 00 => dex number 003
Search in file Pokemon Dex Numbers
003 returns Bulbasaur
Check Bulbasaur base stats in the base stats file
etc
So basically I'm reusing a lot of information. I think a database would be best and it would all be internal right? I'm getting complaints about access denied to a text file (since it's stored in the program directory in the program files).
So to cap up the few questions I have:
-Databases are done in SQL and not inside the GUI?
-Databases would load internally?
-I could search a database without having to load it into like an array or something?
View 2 Replies
Aug 24, 2010
My brother had his son make a simple maze program with Visual Basic. Now all exe files on his system open to the maze, even system restore opens the maze. They have windows xp and he usually can figure things out but this one has him stumped.
View 3 Replies
Dec 23, 2010
My brother had his son make a simple maze program with Visual Basic. Now all exe files on his system open to the maze, even system restore opens the maze. They have windows xp and he usually can figure things out but this one has him stumped.
View 3 Replies
Mar 20, 2011
Is it possible to open a file with the default program installed on Windows ? Lets say we have the exact location of the file on the hard disk and it is a *.pdf file , how can we give the order for that file to get opened by the default program ? In case it matters , I want to open *.pdf and *.doc files . It doesn't matter which program exactly will load the file , the default is fine by me .
View 2 Replies
Aug 2, 2009
I have a program that when you set it as the default program for opening rtf files, and open the file, not from the program, but from windows. It doesn't open it at all. It launches my program but, the file doesn't open in my richtext box.
View 1 Replies
Jul 11, 2009
I am trying to dial a computer from another computer using Modem for sending files and messge.Follwoing is the code done in dialing computer
Text1.Text = "Test string from App1 "
Number$ = InputBox$("Enter phone number:", "Number$")
If Number$ = "" Then Exit Sub
Temp$ = Status
[code].....
But after the dial tone, i am getting the exception "CTL_E_GETNOTSUPPORTED " at the line MSComm1.Output = Text1.Text?
View 6 Replies
Jul 7, 2011
I'm new to VB and i want a simple program that opens a local htm file when you click a button into a iframe of the program.
What should the code say for the button to open a local file into a window?
View 10 Replies
Jul 17, 2011
The program i made is an IP Finder. it uses MS WinSock, so i thought that would be the problem. I have already installed the powerpack and i got another program i made working
View 2 Replies
Apr 24, 2010
I have a program that works when, a file is opened with it using the right click menu in explorer. But if I select multiple files and then right click and open with my program then it opens multiple instances of my program, instead of just passing the multiple files as arguments to a single instance. The program is written in vb.net but is not a windows form, it is just a module, so I can to tick the Single instance option in the properties in Visual Studio.So how do I open multiple files from explorer context menu in a single instance.
View 2 Replies
May 8, 2010
i want to write a program and set it as default to open .txt files so when i double click on a text file that it opens in that program and displays the text into a RichTextBox
my question is how do i display the text in the RichTextBox after opening the program through a double click on a text file?
View 6 Replies
Dec 21, 2009
How do you share files from one computer to another that are connected in one wireless internet connection? I mean, it's possible using shared folders this means it could be possible in vb.net too..
View 1 Replies
Jun 4, 2010
I am trying to write a section of Access VB code that opens the Windows dialog box and allows my user to select and open a file to verify it is the correct one. (Then I use the file path and name to copy, rename and move the file). I have been trying to use the OpenFileName structure and have succeeded in capturing the file path and name my user selected... My main problem in all of this is getting the file to actually open so the user can verify it before I commit the actions noted. This probably can be done as a part of the OpenFileName dialog if I understood it better, but but isn't there also a trivial way to open a file if you have the path and name?
View 2 Replies
Mar 24, 2011
I have a CheckedListBox. In the box are files from a directory. All *.jpg files.
Now I want to open the checked files with the default program.
View 3 Replies
Feb 4, 2011
i have encountered a problem, i want to access the data coming to the computer from the in-built bluetooth module of a computer on windows platform, this data has been sent by a remote bluetooth module say a by an autonomous device (just like a bluetooth mouse connecting to the computer). The to be sent is in the form of numbers and i need these to manipulate on the computer.
View 6 Replies
Aug 3, 2011
I have VB 2008 Express installed in my PC. I downloaded a program source code written in VB6 but could not open the files. What do I need to do to get this codes displayed.
View 4 Replies
Jun 1, 2010
Open a Access database (protected with a password) in my application in Visual Basic 2008. I use Oledb connection to link my Application to the database. When my Access database is not protected with password my connection goes well, but I don't know how to set my password of my database in my application. I have "googled", but I can't find something that works for me. [code]----
View 3 Replies
Nov 5, 2011
I finished my application whith vb2010, this application uses a Access database. I have a problem because when I install my application he put database in de same path "program files" and this path is only read And my application crahed. I know how to installer put database in other path but I don't know how to tell my application to find this database.
View 2 Replies
Apr 19, 2010
I'm trying to run an EXE file using process.start.I've put in username, password and domain that it is accepting (it complains when I put the wrong password, and not when I put the right one, so it is checking etc), and that have local admin rights on the PC.However, when I try to run an EXE that's stored in Program Files, I cannot run it. It always says Access is Denied. When I copy that EXE to another folder, it runs perfectly![code]
View 2 Replies
Jul 6, 2011
So in VB.NET I created a resource file called "source.txt" (as its a text file). My program will take in the text in the file, and then compile it into an executable.
How do I access this file which is in my resources folder in my project?
View 1 Replies
Nov 5, 2011
I finished my application whith vb2010, this application uses a Access database. I have a problem because when I install my application he put database in de same path "program files" and this path is only read And my application crahed. I know how to installer put database in other path but I don't know how to tell my application to find this database,
View 4 Replies
Apr 19, 2010
I'm trying to make a file.copy to the program files folder but can't get access to it.This is on windows vista and 7.
View 6 Replies