VS 2010 - Open The File VB 2010 On VB 2008?
Nov 27, 2010When 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 RepliesWhen 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 RepliesHow 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 RepliesThe console is closing automatically.
[code]...
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].....
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]....
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 RepliesI'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 RepliesNew 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 RepliesI'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]...
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 RepliesNeed Code that search for .exe file on computer and then start the .exe file
View 3 Repliesim 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 RepliesHow do you begin to do this?
me.text = ????
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 RepliesThis 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.
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 RepliesI 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 RepliesMy 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 RepliesI 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]...
How do I open a web page link in Vb.net code for 2010?
View 2 RepliesPrivate 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.
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]....
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.
I had a .chm file I used in VB2008 and I'm having trouble getting it to work for VB2010. I use the code below to reference the file.
vb
Module HTMPHelpAPI Public Const HH_DISPLAY_TOPIC As Short = &H0 Public Const HH_DISPLAY_TOC As Short = &H1 Public Const HH_DISPLAY_INDEX As Short = &H2 Public Const HH_DISPLAY_SEARCH As Short = &H3 Public Const HH_HELP_CONTEXT As Short = &HF Declare Function HTMLHelp Lib "hhctrl.ocx" Alias "HtmlHelpA" (ByVal hwnd As IntPtr, ByVal lpHelpFile As String, ByVal uCommand As Int32, ByVal dwData As Int32) As Int32End Module
I then call it from my menu using this:
vb
Private Sub HelpToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles HelpToolStripMenuItem1.Click HTMLHelp(IntPtr.Zero, "PE Files Help.chm", HH_DISPLAY_TOC, 0) 'Dim sHelpFile As String 'Dim sStartupPath As String 'sStartupPath = Application.StartupPath.ToString 'sHelpFile = Replace(sStartupPath, "in", "hlp") & "PE Files Help.chm" 'Me.hlpHtmlLocal.HelpNamespace = sHelpFile End Sub
I had found the commented out portion online and tried to get it to work, but nothing will bring up the file. Do I need to have it loaded into VB.Net somehow or point to it or does it need to be in a certain location?
i coded some visual basic codes on visual studio 2010, now my friend cannot view the in his visual studio 2008.. is there any method that can save it into compatible method, so my friend can view the codes also?
View 3 RepliesI have done some work in VB 2010 for school and the schools computers have VB 2008. is this going to be a problem? if so how can i fix it so i can open the work in vb2008 because thats where it will get marked.
View 2 Replieswith VB.net 2010, i would like to export a text file (with ; separator and variable length lines) to excel 2010
View 3 Replies2008/2010 - automatically download a file from a website that generates
View 2 RepliesI have a website which has a section under maintenance with a button called create a new file - when you click on this button it does a backup and generate a filename on the same page called *.tbf - the filename changes each time you click on create a new file
[Code]...
So what I am trying to do is make it so i can set my forms opacity by the the textboxso if i type ' setop .5 ' then it will set the opacity to 50% depending on what integer I type after the setop.
View 7 Replies