Application.Startup Path Points To My Debug Bin When User Executes ?
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
ADVERTISEMENT
Apr 21, 2009
I've made some application in VB.NET 2005 and it works fine.I sent this application to the custemer and he is getting the following error at the application startup: "An unexpected error has occured. Would you like to restart the application?".
This guy is using Windows Vista. I've tested this application on several Vista machines and it works fine.
Do you have any idea how to debug it? Of course this guy doesn't have Visual Studio.
View 10 Replies
Oct 28, 2010
How do I get the startup folder path for "Current user" and "All user" in VB.net?
View 2 Replies
Aug 12, 2009
How can i test that the code executes in debug mode.
Here is what i would like to do in pseudocode
if not debugMode then
Do something()
[code].....
View 3 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
Nov 11, 2011
how can i run a application on windows startup for all user accounts on my computer?
View 3 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
Aug 11, 2010
I'm struggling with a problem at remot installations. I released my Beta software which was always running fine on a lot of systems Win XP , Win2003, Win 7.Now I have a strange problem at some remote installation. After starting the program it will crash right away, not even geting throug the new or load Events.All my integrated debugging is useless. I don't know how I should debug such a problem.I guess there are some files missing at the remote systems. I have no idea which files. It could also be because of some third party components. I only have an event (see below) which is not of much help (to me).I found some other threads about the same CLR20r3 event but it was not very usefull. I need to get this application up and running. What steps should I take. I have some very good Beta testers.
[code]...
View 2 Replies
May 17, 2010
how to list all the points in my graphics path and measure the distance between them, preferably in inches but pixels will suffice for now.
View 4 Replies
Mar 4, 2010
How to make an Application to startup at the system startup? and How to enable and disable?
View 6 Replies
Aug 17, 2010
I'm trying to develop some AI code for a game I'm creating. I have a list of x,y coords and I need help figuring out what I can use/do to build the shortest path between any 2 points in this list. I would like to build a function that I can pass a list of valid X,Y coords to use when generating the path, start point, end point, and have it return a list of points, which would be the shortest path between the start and end point, using the list of points supplied. I have looked at A* and Dijkstra's, but am having problems implementing the algs in code, as all this seems graph based.
View 3 Replies
Nov 13, 2011
I've come across a very basic problem which I'm sure has a basic answer.Forgive me but I haven't programmed in years and this just a hobby of mine..My problem is that I need a drawn object (say an ellipse) to move to the cursors location when I click. Imagine an adventure quest style game where you view your character in birds eye view, and it moves according to where you click on the map.I can draw the image fine, and move the image around fine - it's more so the formula I'm using which I'm a little stumped on.I have certain requirements though.
1. I need a timer that constantly updates the drawn object's (lets say character from now on) location. Each tick will essentially be the character taking 1 step towards the cursor's location.2. At the end of each tick of the timer, it'll will invalidate the form/control to invoke the paint event, and of course, the objects location will be be updated.It sounded simple enough to create a linear equation based on the objects original location and the location of the cursor when I click.However, that will not give it a fixed speed.If say for example, the gradient (rise/run) between the cursor location and objects location is very steep, the object's y-velocity will be greater than that of the x-velocity
View 5 Replies
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
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
May 19, 2012
I have a VB application that executes an external application, via Shell().
What I want is to be able to have control over the "shortcut properties", if you will (such as icon & title), resulting in the external app being forced to use that specified icon and title for its spot in the taskbar while it is running.
A normal desktop shortcut does this easily (by editing its properties) but I don't know if it's possible to take advantage of that.
View 14 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
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
Nov 11, 2009
i deleted my previous start up form to be replaced by another one but each time i launch the application,the deleted start up form is still displayed.i dont know from where this deleted start up form is being loaded.
View 3 Replies
Nov 25, 2009
I have one project and in this project I want to save picture to application path and save the path to database as string and retrieve the image from the application path.Can u give me some idea about it..i am using vb.net as frontend and ms access database
View 1 Replies
Mar 15, 2012
code that creates a program where a user can key in 3 coordinate points and when the click "Generate Triangle" button. the program automatically creates the program.
View 5 Replies
Jan 23, 2011
I am building a game project for a school project. User gets points for completing certain tasks. I have it all coded - curious as how I should do high score table. I was thinking an Access DB, but that seems like total overkill. Does XML seem reasonable?
View 5 Replies
Nov 21, 2009
I get this error every time I try to debug.But, I do not know how to fix it or why it started occurring.
View 1 Replies
Apr 20, 2010
is there a way to offset the points in a polygon without having to change each one individually the points are in an array
View 2 Replies
Jun 27, 2012
I have this MySQL Query glitch in my VB.NET program. Here is the query in VB.NET:
"SELECT Points FROM user WHERE Username = '" & UsernameText.Text & "';"
It will select the points column from the user table from the Username they entered. When I deploy this it will set the value for points to 0 on their account. I'm not even inserting anything in.
View 5 Replies
Nov 20, 2010
I'm currently writing a program that needs to open a file specified by the user, replace a certain string of text with a different string of text, and save it to the user-specified path. Here's what I have so far:
Private Sub forceButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles forceButton.Click
Dim writer As New IO.StreamWriter(OpenChart1.FileName)
Replace("", "E *", "N 5 0")
End Sub
View 2 Replies
Oct 8, 2010
I'm using VB 2008 Express I need an easy method that will work for XP, Vista, and 7.
View 5 Replies
Jul 27, 2011
I have a project that I have upgraded from .NET 1.1 to .NET 4.0. The project uses Windows Authentication (internal Intranet webpage). I setup Windows Authentication in IIS 7.5 (running Windows 7) following the steps laid out in this article.[URL]..I can now build the project. I can open the project by opening IE and typing in the URL on localhost. However, if I try to debug the project it throws an NullReferenceException on this line in the Application_AuthenticateRequest in Global.asax.
dt = oDBLookup.GetPIMSUserRoles(Context.User.Identity.Name)If I set a breakpoint there I see that Context.User is Nothing. If I set a breakpoint in the same place on the 1.1 project (different box, running IIS 6) it has my Windows Credentials.Why would Context.User be Nothing ONLY when I am trying to run from the debugger in Visual Studio 2010 Professional, and not when I open the web project directly in IE?
View 1 Replies
Jun 23, 2009
I'm running into this one very specific issue:
- I have a VB.Net 2005 Project for which I've created a Setup Project.
- In my Setup Project, I've added a shortcut on my Start Menu, that points to my Application.
- After deploying it, all works great.
- One of my users chooses to *copy* the shortcut from the Start Menu into their Desktop.
- I then create an upgrade for this Application. Again, the deployment works great. They can start my application from the Start menu.
- They double-click on their icon in the Desktop and they get a popup: Title of the message box: Problem with Shortcut Description of the message box: (X) The parameter is incorrect.
The shortcut's Target, is blank ( which I believe is the problem ).I'd love to be able to specify an actual [TARGETDIR]myApp.exe type of string as the shortcut's target in my Setup Project, but I can't do this.Instead I have to point it via UI, to my Target Application ( which I'm assuming is resolved at install-time ). The problem with this is that it appears that the shortcuts get re-evaluated every time you re-install / upgrade the application. Since my previous version is technically not installed anymore, my shortcut gets invalidaded, even though the target path is still the same and I haven't changed my executable's file name.
View 1 Replies
Mar 4, 2009
I need the application version as an integer with decimal points eg: 1.2 At the moment I'm using:
Dim CurrentVersion As Integer
CurrentVersion = My.Application.Info.Version.Major & My.Application.Info.Version.Minor
which just gives me 12.
View 6 Replies