VS 2008 .net Console Project Startup Path?
May 9, 2010
Im trying to get the startup path in a console project I have this
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly.Location())
but that only includes the folder, i need to add that application to that.
How would i get the applications startup/project name?
View 3 Replies
ADVERTISEMENT
Mar 25, 2009
I'm using this code to make my app. run at startup if a CheckBox is checked
Private Sub CheckBox5_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox5.CheckedChanged
If CheckBox5.Checked = True Then
CheckBox6.Checked = False
CheckBox6.Enabled = False
[Code]...
View 19 Replies
Feb 17, 2009
Can I have Two basic Questions about Setup Project deploying -
1, After I put company's logo at startup installation, there was still text shown up "Welcome xxxx setup.." together with the logo, how to remove it and display company's logo only? Also, if using text display and the text is too long, how to return to next line?
2, If I setup more than once, I was told to remove the first one using Add/Remove program in Control Panel before setting up new program. How can I use a dialog like "Overwrite the existing program"?
View 3 Replies
Feb 10, 2010
I recently wrote a program to copy files off of a hard drive with a corrupted copy of windows. I'm not sure how to make it run off of my flash drive in dos. I set boot priority to only boot off of the flash drive yet it will not run. I tried writing an autorun.ini file, which did nothing. I think i need to make a boot.ini file.
View 3 Replies
Jun 3, 2012
i have a word template that needs to be used in an application so to make the path simple i placed the template in the debug file and i used application.stertuppath and it worked but when i publish the application it does not work it seems that the template is not included in the application but even when i place it manually in the aplication folder it does not work
View 13 Replies
Jun 8, 2010
I am using vb.net 2003. In my program, the user can use an openfile dialog box to locate the address of a image and use it to change the display. The name and path of the image is saved in a database. This image is then loaded upon startup. If the image is located in the start-up directory the image change and saving to the database works great. But if the image is located some where else the image change occurs, but the path of the database has changed to the location of the image. Since the database is not located there, I get an unhandle exception error. What is the code to redirect the program to my startup path?
View 5 Replies
Jul 27, 2011
Is it possible to get this information from a drag&drop Startup path of a external program that was dragged over my app? The process name of the external program that was dragged over my app? This is what I already got. Private Sub Main_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles Me.DragDrop
[Code]...
View 12 Replies
Jun 29, 2012
I sent the application exe to a user to test and they get an unhandled exception error and the details show my personal My Documents Folder/DEBUG path from the project. So I tried to use Application.ExecutablePath but when I release that it points to "My Documents" Folder (not the debug) folder. The file to open is in the same folder as the exe is in but for some reason the error occurs because the application is not looking for the file using the path where the EXE was launched from. Here is my code that relates to the section giving my users a problem:
from the module
Public Class shrd
Public Shared ocSess As cSession
[code]....
How can I get the application to open the file that is in the same folder as the exe when the user launches
View 4 Replies
Oct 28, 2010
How do I get the startup folder path for "Current user" and "All user" in VB.net?
View 2 Replies
Nov 6, 2009
I'm creating window application with VB.NET and flatfiles.the problem is how do i store the connection string in the app.config file that include the application.startup path?
<add name="cn" connectionString="provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + "data;Extended Properties=text;" />
i got some error when writing to app.config.
"Missing attribute value on attribute 'Application.StartupPath'."
View 1 Replies
Aug 25, 2009
I am writing a program that is going to copy files from one server to another but I need to provide the user name and password in order to avoid receiving the Access to the path "..." is denied error. I have the username and password but where would I put it in my program in order to get access.For example I am using the Directory.GetFiles( string ) command to list the files of the directory. What do I need to add to it so I can get access?
View 2 Replies
Jul 29, 2010
I am using VS2010 VB.NET, working on a solution that has a number of projects. I have been developing on it for a while now, and in an attempt to debug a custom class inherited from ObservableCollection (which by the way would not load symbols when debugging even though it was apparent that the breakpointed line was being called), I changed the startup object for the startup project to a different WPF window which I had a couple of controls that I set aside for debugging.Immediately I was confronted with 'Sub Main' was not found in . I tried changing the startup object back to the normal startup window, but now the Startup Object dropdown only has "Sub Main" as it's only option. I changed the StartupURI back in the App.xaml, to no avail.
View 2 Replies
Jul 4, 2009
I have been trying to build the "Testing a class lesson, but the Set as StartUp Project line in the Project menu does not exist! I have redone the entire project 7 times, always the same response! # different computers, all with registered versions of VB. Why does this problem persist?
View 8 Replies
Sep 3, 2009
I want the location of the current execution project i.e in VB.NET/C# or the current class file's path? Ok,let me elaborate i got 2 projects in one solution file,lets say A,B are projects, my startup project is B ,and im accessing a class file in A ,now i need to know virtual path of B. because i need it for accessing the resource file coz error pops up when using ExpressionBuilderContext
View 3 Replies
Feb 21, 2012
I have a project in VSTO/VB using a BackgroundWorker that works fine. It is a form that calls for a web page of information. The web page can take a while, so I have the form calling with the BackgroundWorker.I then have an Excel Addin project that has added the BackgroundWorker project. When I call up the form from the Excel Addin project and use the BackgroundWorker to request the web page, it grabs the web page ok. But the work done upon completion, during the BackgroundWorker1_RunWorkerCompleted method, is resulting in an error message:
View 2 Replies
Apr 2, 2009
I am learning Visual Basic Express 2008. When I follow step #5 below, the option Set as StartUp Project does not exist. How I can accomplish this. To create a test project for your class. Open the Persons project that you created in the previous lesson. If you did not save it, you will first have to go back to the previous lesson, Adding Methods to a Class, and complete the procedures.
On the File menu, point to Add, and then click New Project.
On the Templates pane in the New Project dialog box, click Windows Forms Application.
In the Name box, type PersonsTest and then click OK.
A new Windows Forms project is added to Solution Explorer, and a new form appears.
In Solution Explorer, select the PersonsTest project, and then on the Project menu, click Set as StartUp Project. In the Solution Explorer, select the PersonsTest project, and then on the Project menu, click Add Reference. The Add Reference dialog box appears.
Click the Projects tab, and then select Persons and click OK.
Double-click the form to open the Code Editor, and then enter the following declaration just under the line Public Class Form1.
View 7 Replies
Jun 3, 2011
I am wanting to change my startup form for my application in Visual Studio for VB.Net. I double clicked "My Project" in the Solution Explorer and then clicked on the Application tab. For some reason I only see 12 forms out of the 6 forms I have in my project when the "Enable Application Framework" check box is True. When the check box is False I see all my forms, why?
View 9 Replies
Nov 12, 2010
So basically my VB project creates a text file that is readable by another console application (not made in VB). Basically what I want to do is in my program, I want it so that when you press a button, it will run all of the text files (that you made in my program) through that console app (the console app takes XML files and converts it into another format). How can I do this? In the console app, you type in the file name (ex. File.xml) and press enter and it will give you the output file. How do I "call" a console app and have it run in the background? (background as in the prompt window doesn't pop up.)
View 3 Replies
Jan 21, 2011
Regarding a console application and VB forum program - In searching XML parsing examples I find several using Console.Write and Console.Write - To show my inexperience I (out of habit going through a couple preliminary examples) I created a new VB project with a blank form - I then copied and pasted the XML example using the console commands Errors - I just found the "create console application"What is the difference between a console application and the project using a blank form? Can the console commands like Console.Write work with a VB form project?If so (#2)What is the advantage in creating a console application - why not just start with a blank form and go?
View 1 Replies
Oct 15, 2011
how to display picture using the Application.startup path? i want to locate the picture in my bin folder inside my debug folder as i selected the name of the candidate in the combo box.
View 2 Replies
Jul 13, 2009
I have an application with a String variable that repeated gets a Date from a database, does something with that field, then goes onto the next row. Is there a way I can send send out some debugging information to the stdout console so I can debug better/view the progress of the program?
View 4 Replies
Jul 26, 2010
I've created a VB Console Application Project and am trying to instantiate a Report Viewer object. To my understanding I need to import Microsoft.Reporting.WinForms however Visual Studio does not recognize this name space. Is there some reference I need to add?
View 4 Replies
Nov 20, 2011
Im trying to make a Console Project that when you enter a number it changes the color of the text and its not working
[Code]...
View 1 Replies
Sep 24, 2009
I need a method to know iis current wwwroot in VB.Net.
I need to get this information outside a web project (otherwise the problem would have a simple solution). I think I need to read this information from the registry, but I have no idea where to start looking.
View 1 Replies
Apr 22, 2009
I am running windows application in vb.net.I have a xml file named mail.xml in folder named XmlFiles.In default.aspx.vb i have to get the path of mail.xml.What code i hve to write to make it possible?
View 1 Replies
Jun 11, 2011
I'm new to VB .Net and I've searched for this info in the help files, but couldn't find it.When I save a project it automatically saves it to "C:Documents and SettingsusernameLocal SettingsApplication DataTemporary Projectsfilename".I want to be able to set this path ahead of time to where I want it to go. I've set a path in the Tools > Options > Projects and Solutions > General tab (under Project Location), but it doesn't use it.
View 2 Replies
May 5, 2010
For reasons that are beyond my control, I have three Projects. Projects A and B reference project C. Project A references project B so that it can open a large form in project B. I now need to open that large form from project C, but VB won't allow me to add a reference from C to B because that would create a circular dependency. I found a way around it, though. I created a Timer in A, and when I opened C from A, I passed in that timer. When the user performs a certain action, I enable the Timer from A, and this causes C to open B for me.
View 2 Replies
Mar 15, 2012
i want to have a txt file on my application final .exe the .txt is located at
C:UsersTimhookDocumentsVisual Studio 2008ProjectsWWTBAM WWTBAM inDebughask.txt
thats my project binDebug folder will it include the this hask.txt file after publishing the application?
View 4 Replies
Jul 16, 2009
My application placed in D:SampleWindowsApplication1 . i want get this project path ..
I traid but always it comes Debug path i need to get upto WindowsApplication1
View 6 Replies
Aug 5, 2010
My vb.net app ORDER is at d:myapporder. I created a setup project named it as ordersetup in the same solution file. Once I moved ORDER to e:myapporder, ordersetup can not load any more. How to fix it?
View 4 Replies