Need To Make Program Open A File
Jun 3, 2009I need to make my program open a file, write a length of 142 bytes over an existing 142 bytes and save. Please help. I have gotten no where with it so far...
View 3 RepliesI need to make my program open a file, write a length of 142 bytes over an existing 142 bytes and save. Please help. I have gotten no where with it so far...
View 3 RepliesQuestion 1: How to make 'Button1' open a external program of there choice using the File Browser.
Question 2: How to send 'TextBox1.Text' to an external process
Question 3: How to save data in a .dll file made from Visual Basic
If anyone has source codes that I code edit for Visual Basic 10/08,And If you could sort of walk me through what I would need to edit to make it work for my programs
How do i make my button open a program and make it windows size?
View 6 RepliesHow can I make a program that will open an image, put it in picturebox1, and save it resized?So far I have the open code
OpenFileDialog1.ShowDialog()
PictureBox1.ImageLocation = OpenFileDialog1.FileName
Me.Text = OpenFileDialog1.SafeFileName
PictureBox1.SizeMode = PictureBoxSizeMode.Zoom
Just for fun i am trying to make a program who can open add-ons like firefox. I was thinking that i maybey can use something like this: Me. Controls. Add(the add-ons file}and if it's possible, what kind of files shuld i use, dll?
View 2 RepliesI have a vb.net form which has a button in it. The button will call A.exe (it's a vb.net exe) using the command Shell("A.exe ", AppWinStyle.NormalFocus).
How can I make sure that everytime I press on the button, A.exe will only open once, and does not open a new form each time?
I want my users to be able to have my program open on startup. I am coding in vb.net. How can I go about doing this?I can't find a "system startup" folder anywhere that I could just copy a shortcut to.
View 4 RepliesIs it possible to only make a program open when another program opens it? so when someone tries to open it themselfs by clicking on it, it pops up a error message?if so then how would someone go about doing this in VB 2008?
View 9 Repliesi need to know the exact code that once you click a button on visual basic program it will open a program in a directory for example:C:Program FilesiTunes.exe
View 5 Replieshow i can making my app in open with list for windows like if i chose my app to open txt file my app will open the txt file like example: ex.txt ==> open with my app and my app with view the ex.txt
View 1 Replieswhat is the code to make windows open a program at the startup?
View 4 Repliesi'm relatively new to vb. I'm trying to make a relatively simple program to get all open window titles in a ListBox. I'm kinda borrowing off some tutorial's/sample code so I might have some declarations I don't need but this is what I have:
Code:Imports VB = Microsoft.VisualBasic Public Class Form1 Declare Function GetWindowTextLength Lib "user32" Alias "GetWindowTextLengthA" (ByVal hwnd As Integer) As Integer
[Code]...
How do I Close a Form and then open a new one straight away? Im trying to make a Login for a Program, but I want the Login Box to open first, then disappear when the credentials are correct and a new Form to load.
View 3 Repliesim having trouble opening adobe from my coding, also is my file ok or do i need to call from its folder location within the program.i need to be able to open a specific .pdf file from a whole range of file located in the program.what im getting the user to do is press 1 of about 14 buttons to select a brand. then in textbox1,enter the first part of the file name so in this case a274 (adobe runs in .pdf format so the file would be a274.pdf).at the moment i get a win32 error high lighting startinfo as the problem so im thinking its the adobe.exe is the problem. [code]
View 9 RepliesFor creating a new form I use: Dim form2 As New Form Form2.Show()How to make the new form2 to open a text file in its textbox?
View 6 Replieshow do i make this open a file with the name of .mxp and any text file how do i add that in. and how do i open the file mxp to Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click
[Code]...
i made a program that manage file (picture text etc.), and i want when i right click the file and select open with->myprogram, it do the function that add the file to my program! (similarly WinRAR)
View 2 RepliesHow can I open up a file with my program? Like the notepad does {right click, open with, notepad}Or swf file opener {right click, open with, swf player}etc...
View 9 Replies[Code]...
'Show the Open dialog and if the user clicks the Open button, 'load the file If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.Ok Then
[Code]...
How do I make a program that opens a file in the folder the program is stored?
View 6 RepliesI 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 RepliesHow can i open a file (like .mp3 , .avi) or a folder (like C:program files ) using my program? I use visual basic
View 8 RepliesI have a multithread program and in a thread i read a stram from ftp server and write them to a file and close it and in another thread open saved file and read it for process.but sometime when i want to open saved file i receive a error that say : cannot open file , because another user open it .i create 2 filter that surly file saved and closed , but i don't success.
View 5 RepliesI have an embedded EXE file, that my program extracts. I want to open a specific file with this program. How do I do this?
BTW: If you want to extract an embedded resource in one line, here it is: My.Computer.FileSystem.WriteAllBytes(PathToExtract,ResourceFile, PutFalseIfYouWantToOverwrite)
I know shell command but i want to know another solution.
View 2 RepliesHow can i open chm file in VB.net 2005 ?
View 1 RepliesI have an excel file,having lot or micros, connecting to database, doing some complex calculation..inshot that excel file is itself an application.
Now I want to open that excel in VB.net form, on button click. I prefer to open that excel in vb.net form itself having all the excel tool bar etc, If that is not possible then opening in separate window using excel will also solve my purpose (coz when we open in excel it self we will get all the toolbar option etc automatically)
I want to find the full path of the program that will open a given file type. e.g. '.txt' is opened by c:windowssystem32 otepad.exe
I've done a bit of searching but i keep just finding how to create an association, not read one. I've also tried looking in the registery, but it looks like all that's there is a link to the program ID or something.
I am having Beta Testers go through my program. For some reason, the help file doesn't open but crashes the program. But it is in the program folder... I'm not sure why it is having a problem finding it.I created a try catch format because it seemed to have a problem at one point between looking in the 32 bit program folder or the 64 bit even though the program itself is in 64 bit...[code].....
View 4 RepliesI have a program that runs some data manipulation on a file when it is double-clicked and then displays this to the user.However, when I double click on the same file type of a different file it opens in a separate instance of my program instead of the same instance already running, i.e. some message that says would you like to reload file, YesNo, and then given the answer perform the action required.I have found some code to stop a second instance from opening, but this is inconvienient for the user to close out of the program everytime they want to view a new file.[code]
View 6 Replies