VS 2010 Open File From .ini?
Dec 30, 2010
I have custom .ini file named Config.iniHow to make when they start the program and click the button to open the file that they have located in the .ini fileI have 3 buttons:
- 1 - GS 1 Start
- 2 - GS 2 Start
- 3 - GS 3 Start
[code].....
View 17 Replies
ADVERTISEMENT
Jun 18, 2011
im making a simple program that will copy a single file. im trying to get the name of the file that i selected in the open file dialog but i get the location and file name (C:Users****Documents est est.txt) im trying to just get (test.txt)
View 2 Replies
Nov 27, 2010
When i try to open the file in Visual Basics 2008 it says: "The selected file is a solution file, but was created by a newer version of this application and cannot be opened"
View 3 Replies
Jan 15, 2012
How to open an array into visual basic. I have it saving as a text file correctly but i have no idea on how to open it up to use it again. what i have so far is Private Sub Hour1ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Hour1ToolStripMenuItem.Click[code]...
View 10 Replies
Feb 12, 2011
The console is closing automatically.
[code]...
View 5 Replies
Jun 15, 2012
would it be possible to check if any notepad or word file is open that contains the word 'test'?I was thinking something like the following.
Dim Process() As Process = System.Diagnostics.Process.GetProcessesByName("notepad")
Dim Process2() As Process = System.Diagnostics.Process.GetProcessesByName("word")
For Each p As Process In Process
If p.MainWindowTitle.Contains("test") Then
[code]....
View 5 Replies
Sep 20, 2011
I am taking an Intro to Visual Basic class right now. When we do homework, we have to take it into class and put it into a folder that our professor has.When I save it onto my hard drive and I open it from Documents/Visual Studio 2010/Projects/HW Assignment 1, it opens everything perfectly. But on my flash drive, I have the same set up (E:/Homework Assignment 1) and I am not missing any files. But when I double click on the .sln file, it just seems to open the program without my project (display or code) showing.
View 3 Replies
Dec 8, 2010
I'm trying to display the file path of the file I select using an OpenFileDialog box in a text box on my form.
View 3 Replies
Jan 5, 2012
New to vb.net and this forum I have a excel file that I have added to my "resources" in vb.net (Visual Studio 2010). I want to create a button on a form to open the file located in my resources.
View 5 Replies
May 16, 2012
I'm trying to open a file with no extension (to be specific, the Hosts file in c:windowssystem32driversetc) so the user can review it. However, it cannot be opened. When I try to start the program with Notepad for example:
[Code]...
View 3 Replies
Mar 16, 2012
My question is a rather simple one and to be honest with you, I am not sure if it can be done. Lets say I have a mutli-line text box, is it possible, and if so how would I go about making it so if I clicked Open with > editor I could do things with this text, such as TextBox.text = [file contents]. If it's not possible just let me know and I'll stick with open file dialogs.
View 7 Replies
Feb 10, 2012
Need Code that search for .exe file on computer and then start the .exe file
View 3 Replies
May 14, 2012
How do you begin to do this?
me.text = ????
View 3 Replies
Apr 14, 2011
how to load a image in other extension? for example I have other program that contain an Image, when I browse with my program, it's only show the Image only...
View 1 Replies
Feb 1, 2011
This is the code I use to open a file:
Quote:
Public filecode As String
Public Sub getfile(ByVal filename As String)
Dim objReader As StreamReader
But I keep getting the filenotfound exception.
I replaced the file source with the actual location of the file and got the same error. I also checked the permissions of the application to allow sharing and remove read only properties.
View 4 Replies
Oct 16, 2011
Not sure this is a VS specific question - the answer is probably more os related (xp, vista, win7...)But at any rate - how could I go about detecting all the files that are opened while a machine is up and and running??
View 5 Replies
Sep 3, 2010
I open a word document in webbrower, but some File Download dialog box opens up with three buttons Open, Save and Cancel. I always wants to open the document directly instead to click on open button.
View 5 Replies
Apr 4, 2012
My question is as follows: The user has clicked File>Open in Notepad and also clicked on a file/folder. My Application in VB.NET needs to know the path and filename of the selected file/folder before the user selects the OK button of the Open Dialog box. How can I do this with VB.NET (VS2010).
View 5 Replies
Feb 3, 2012
I have searched, but failed to find a suitable answer to this. My small app saves a text file using a savefiledialog and stream writer. Then if successful, displays a messagebox confirming sucess and asks if the user wants to open the text file now. and this is the problem... How do I determine if the user has changed the filename and or path in the savefiledialog when saving? I'd prefer not to hard code a path and file name if possible.... but that seems like the only option? and therefore I can't show the file straight after saving reliably??
[Code]...
View 8 Replies
Mar 11, 2010
Private Sub LinkClicked(ByVal sender As Object, ByVal e As EventArgs)
Dim link As HtmlElement = WebBrowser1.Document.ActiveElement
Dim url As String = link.GetAttribute("href")
[code]...
Okay so here's the question how do I get the links that open in a new window to open in my main webbrowser control. The above code does some, but it's not fool proof.
View 1 Replies
Jun 19, 2009
Whether I am using VB 2008 Express or VS 2010 Beta 1 Visual Basic, I get the same error: "Debugging information for 'EXCEL.EXE" cannot be found or does not match. Cannot find or open the PDB file" I have filled in the Debug Tab information: Start external program: C:Program FilesMicrosoft OfficeOffice12Excel.exe
[Code]....
View 2 Replies
Mar 6, 2012
Why would a .sln solution file open and appear empty in Microsoft Visual Basic 2010 Express - i.e. no windows showing projects and code files etc.When I inspect the file in a text editor, it contains references to vbproj files (which are present) which indicate that it should not appear as empty.No error messages are reported when the file is opened.
View 2 Replies
Feb 11, 2009
I would like to open the excel file after create the excel file. The creating file function is done, but the system unable to open the excel file. My coding as below:
Dim xlApp As Excel.Application
Dim xlWorkBook As Excel.Workbook
Dim misValue As Object = System.Reflection.Missing.Value
[code]....
View 1 Replies
Nov 18, 2009
how to use open file dialogs to open a file to a text box?
View 6 Replies
Feb 23, 2012
I have converted a working C# class that embeds xls files to windows forms application to vb.
I am getting the error:
"Overload resolution Failed because no accessible'Navigate' accepts this number of arguments"
[code]...
but i get error: Error 13 Delegate 'System.Windows.Forms.WebBrowserNavigatedEventHandler' requires an 'AddressOf' expression or lambda expression as the only argument to its constructor.
View 2 Replies
Aug 7, 2011
I've noticed that when you click on a web page in Windows Explorer, or open a file in general, and the default application to open it is internet explorer, ie opens and opens the file. However, when I tried this on my Web Browser it opened, but ignored the file and went on its usual routine. How can I get my Web Browser to open and open the file that was clicked on in explorer?
View 1 Replies
Apr 28, 2011
I saved a file with the extension .doc. I use the RichText to write and save the text. I did not set any encoding type when I saved it. When I tried to open the file in the Richtextbox again, I got all the formatting characters in the RTF file. How do I correct this? How do I open and re-open a .doc file in the Rich Text box control without the formatting showing up in the box with the document contents?
View 4 Replies
May 11, 2010
im having a slight problem with my open file dialogue box, i need to be able to open the dialgue box, and click the file and open in my pdf reader, or at least load it to my other form ive created. what ive go so far:
[Code]....
View 9 Replies
Jul 13, 2011
I like to open a file. The open option should be shown in a separate window. My code works fine but the open window is not displaying to open a file. Here is the code:
private void OpenMyFile()
{
string path = GetPath() + ViewState["fileopen"];
[Code]....
View 4 Replies
Apr 3, 2009
I'm trying to create a program where I open a file using a open file dialog and take the information from a text file and output them into various listboxes and textboxes
The first problem I had encountered was at :
With CurrentCustomer
.EmployeeID = ToInt32(Fields(0))
.Name = Fields(1)
[Code].....
View 3 Replies