Can't Test Application.StartupPath On IDE
May 31, 2011
I work with a database, the db is on the <project_folder>database folder.
If want to open the database, Application.StartupPath returns[code]...
So I have to compile the project to an .exe to make tests.
View 4 Replies
ADVERTISEMENT
Mar 9, 2010
I've almost finished a binary clock, but I have one problem. The user should choose between two different backgrounds, named binary.jpg and binary 1600.jpg
Dim Bild1 As New Bitmap(Application.StartupPath & "/Bilder/binary1600.jpg")
Picturebox1.Image=Bild1
I get "Parameter is not valid" on the first line.
View 11 Replies
Feb 2, 2011
i have this code but it doesnt save in Application.StartupPath :
Public Class Form1
Private Property voice As SpVoice
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstyCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Integer, ByVal hwndCallback As Integer) As Integer
[code]....
but if change the address like this one :
mciSendString("save recsound e:\rec-sound.wav", "", 0, 0)
it is saving... whats wrong with the code? and when i test the value of the wrong code (by msgbox), it says 295.the right code says 0.
View 10 Replies
Oct 9, 2009
I have a FolderBrowserDialog and I want to set the root folder to the folder that the application is sitting in.I do not know in advance where the user has put the application, but I can find that (I think) by using Application.StartUpPathHow do I set the FolderBrowserDialog.RootFolder to the Application.StartUpPath ??
View 4 Replies
Feb 4, 2009
Having finishedd an app, I'm having problems with Application.StartupPath in sql lines. I've tried commas, () and lots of different things. here's the code. This works, of course:
[Code]...
View 2 Replies
Jun 12, 2011
i have one window application developed in VS 2005 which is running successfully on client side,My question is that now i want to convert this window application in WPF browser based application, so what should i keep in mind to convert this application to wpf applicaton, One more thing that in Window Application i have used one mdb file which contain database login detail, so on application startup this file is accessed using System.Windows.Forms.Application.StartupPath+@"/filename.mdb", now im just want to test only whether can i login to my application using WPF or not this time it give me this error "Request for the permission of type 'System.Security. Permissions. RegistryPermission, mscorlib, Version=2.0.0.0, Culture=neutral".
View 2 Replies
May 19, 2010
I have just purchased a new computer with windows 7 on. I have put VS2005 on and for some reason Application.startup says its not a member?
View 1 Replies
Jul 5, 2010
been banging my head on this, i need to get the applications path, then go up 1 folder then into another. As i have a main app and sub apps.
So were Application.StartupPath()is for example:"C: Main app folderSub app folder"How do i then go up a folder to"C: Main app folder"I Know it needs some string removal using on it but i can seem to get it right, after which i could then use Application.StartupPath() 'string removal here" & " ools"to navigate to another sub apps folder etc.
View 8 Replies
Dec 22, 2009
call form1.axshockwaveflash1.loadmovie(1, application.stratuppath + ("swfsStart.swf"))
but when i publish the trainer, and open it through either the clickonce application, or the setup, it can't find the swfs folder to get the .swf files. Therefor the trainer will not work.
View 3 Replies
Oct 23, 2011
I have an app that will need a file repository located in a subfolder in my program's directory. For example: c:program files (x86)myapplicationmyfiles But, I need to allow the user to be able to change the location of this subfolder if they wish to store them on a network drive etc..
[Code]...
View 4 Replies
Aug 16, 2010
Can it give a problem if a file is saved this way in a program:
Public aPath As String = Application.StartupPath
Dim outfile As New StreamWriter(aPath & "" & accountfile1)
View 13 Replies
Aug 23, 2009
i want to copy the chosen file to "Application.StartupPath & "\saved\" and then save tha path and file name. i know how to save it, but i dont know how o copy the file to that location.
here is the code for the "select image" button :
Dim OpenFileDialog1 As New OpenFileDialog
OpenFileDialog1.ShowDialog()
[Code]....
i use a hiden label to "show" the path. to the picturebox read�s the location from the label and the databas reads and writes the locatin to the label and the "openfiledialog" writes the location to the label. sp that simple.
View 8 Replies
Apr 11, 2012
I am new to working with SQL databases (and databases in general) so I do not have a lot of experience with how queries work and how I can practice them. When I was first learning xml and XPath, I found XPath Visualizer incredibly helpful after someone on stack overflow mentioned it to me.Due to this, I am wondering if a similar tool exists for SQL databases?Basically a tool that will allow me to connect to a database,enter queries and see somehow what the results would be like.
I have looked online a bit, however I have found relatively few options in terms of any utility that would do what I want, and that looks reliable.I will ultimately be writing an application to interact with an SQL 2008 server in vb.net, however for now I am just experimenting so I will know what I am doing when I actually want to create my application.So far I have managed to connect to the database using an OLE DB connection, but I am now looking for a way to experiement with queries without just querying and figuring out a way to interpret the results in my program. Basically I want to be able to remove the programming aspect of things so I can experiment with queries without needing to question anything in my code that is unrelated to the specific query.
View 7 Replies
Jan 19, 2010
I recently made an application which have some settings one of them a saving path
I want to make check if the saving path settings is available or not (drive)
If not so it got a default value which is application path
I tried to Change the default settings in the My.Settings by writing "Application.startuppath"But the application accept it as a string is there any way do dodge this problem?
View 6 Replies
Sep 9, 2008
I am looking for some advise, I currently have a VB.Net application using .NET frameworks 2 written in VS 2005. One of my clients wants to know if the application works with Unicode, at the moment I have not tested this and what I am looking for is some advise on how to do this e.g.
1) Does anything need to be added to my project e.g. code to allow this functionality. 2) Is there a way that I can easily check to see if my application can work with Unicode? 3) Advise on how other people test for this? I know it is a bit general, but as I have not done this before I am obviously trying to build my knowledge and get it right with regards to testing etc.
View 9 Replies
Sep 9, 2008
I am looking for some advise, I currently have a VB.Net application using .NET frameworks 2 written in VS 2005. One of my clients wants to know if the application works with Unicode, at the moment I have not tested this and what I am looking for is some advise on how to do this e.g.
1) Does anything need to be added to my project e.g. code to allow this functionality.
2) Is there a way that I can easily check to see if my application can work with Unicode?
3) Advise on how other people test for this?
I know it is a bit general, but as I have not done this before I am obviously trying to build my knowledge and get it right with regards to testing etc.
View 1 Replies
Sep 25, 2010
It apparently came to my mind to test my eyeBlink using an application. Through the use of my webcam, I want to perform some commands. For eg: When I blink my eye, it should open notepad. How can that be done?
View 1 Replies
Nov 30, 2010
I am currently going through Murachs Beggining .net programming book. I am trying to implement an application for an exercise at the end of chapter 5. The application specification is as follows.
[Code]...
View 2 Replies
Mar 12, 2012
I'd like to create a simple application to determine the writing speed. In this application I want to view a line of text (may be more than one line) to the user to write it. And I want to select (higlight) the character the user pressed in my line and to move like a cursor to the next character (or to put underline under the current charater). How can I do that? and what is the object or component i must use to insert the text. Finally, if I want to make it multiple lines how to determine the enter key pressed by the user and how to move the cursor to the next line?
View 2 Replies
Jul 15, 2011
Currently I'm writing a VB.NET app and it's getting big, resulting in its become very slow.Is there any application (or plug in) that can test the performance in seconds?I mean, when I click a button and it displays a product, I want to know exactly how long it is gonna take.
View 3 Replies
Aug 21, 2009
my friend is currently development an application using SOA Architecture, He sent me a picture with a lot of layers (10 almost) and he is worried about performance issues, the application is development on VB.Net 2.0 & 3.5 (some libs).
View 3 Replies
Jul 14, 2011
I am developing an application which will be used to scan the barcode from a particular document, as i am just developing who i will get know that barcode scanning is working i dont have device at the moment
View 2 Replies
Feb 11, 2009
Lately our network is having some speed issues at certain times of day, so what I'd like to do is make a little app that will test the network speed at certain intervals, like once an hour between certain servers etc and then write the results to a text file. Is VB 2008 cable of doing something like this? I thought of maybe copying a 500mb file from 1 place to another and somehow record the average transfer rate of that file, but I am not exactly sure about how to record the transfer speed.
View 4 Replies
Oct 5, 2010
The Question sound like this.Assume the theater keep 20% of its box office receipts. Use the Following test data to determine if the Application is calculating properly :
[Code]...
View 1 Replies
Sep 25, 2010
I don't understand the error, Argument not specified for parameter 'test' of 'Public Shared Function TestThis(test As String)'.
Partial Public Class Form1
Shared Sub ReceiveCallback(ByVal ar As IAsyncResult)
Form1.Invoke(TestThis, New Object(){"test"}) 'error
[code].....
View 6 Replies
Sep 30, 2009
I am a new user to VB and I am having difficulty with one of my assignments. The assignment states that to create an application that allows a user to enter three test scores each for three students. The application should calculate each student's average test score and assign a letter grade. The application should prompt the user for each student's name and three test scores.
[Code]...
View 3 Replies
Feb 20, 2009
I've had a search through a number of extremely useful articles on the forums, however rather than reinvent the wheel I thought I would ask if anyone already had what I am looking for..A simply little VB app that opens a session to a specific IP port and then writes to a test file everything it receives. If the connection drops, simply re-stablish it and keep listening for text to write to the file.
View 1 Replies
Jan 23, 2010
I use this code
[Code]...
what code i use that my application pick test.pdf file from application directory.
View 4 Replies
May 25, 2009
[code]...
and from VB6 project I reference to Test.dll but an error messege was appear A reference to Test.dll file could not be added (If I create VB NET project and reference to file Test.dll it OK )
View 10 Replies
Sep 20, 2011
Probably a dumb question, but can you write a unit test project in one language to test against another project in a different language?I'd like to translate one of our VB assemblies into C#, but want to build unit tests to verify the results. I've tried to set a unit test project up to do this, but I can't seem to access the VB code within a unit test... I can't figure out if I'm just missing/doing something stupid, or it really isn't allowed.
View 2 Replies