VS 2010 Equivalent Of VB6 'app.path'?

Feb 9, 2011

I've tried several properties of the application object in VB.NET but none seem to give me what the old App.Path did in VB6.Application.ExecutablePath returns "C:UsersPaulDocumentsVisual Studio 2010ProjectsFCL Manager 2011inDebugFCL Manager 2011.EXE"

View 17 Replies


ADVERTISEMENT

Equivalent Keyword For App.path

Apr 11, 2010

We have a keyword 'app.path' in VB6 What is the equivalent key word in VB.NET

View 1 Replies

Equivalent Of App.Path And App.EXEName

Feb 6, 2012

I need some help to find the equivalent of App.Path and App.EXEName in VB.Net in a DLL.

View 1 Replies

Equivalent Of Vb6s App.path In A Config File?

Aug 29, 2009

I want to specify the application path in a config file for my trace logs, but I'm not sure how. At the moment I have:

[Code]...

I want to replace the absolute location f:Logs with the relative path of the application, but I want to do it in the config file, not in code. Is there a way to do this? I know about ${APPDATA} but this isn't what I want.

View 2 Replies

VS 2010 .net Direct X Equivalent?

Jan 30, 2011

I Know there are a few things i can use for graphics but I want to start a simple game in vb.net. GDI is to slow for a game so What is the modern equivalent to Direct X 11. I know Microsoft released a managed version of direct x long ago but It seems Out Dated now. I've heard about XNA but on their website it says it is used for windows phone and the Xbox

Which is currently the best and fastest equivalent to Direct x for Vb.net ?

View 4 Replies

Javascript - JS EventListener Equivalent In VB 2010

Jul 18, 2011

I have this problem: I need to be able to catch changed in DOM elements in a page that I am loading in a Visual Basic webBrowser control. Normally in JavaScript in Firefox I would do something like this: element[0].childNodes[1].addEventListener("DOMAttrModified", functionX, true); where element[0] is the element that I need monitored and child[1] is the 2nd child for this element that has its text value changed which I need to catch when it changes, while functionX is the function/sub that I want to trigger everytime there is a change in element[0].childNodes[1].

[Code]...

View 1 Replies

VS 2010 Listview Equivalent To VB6 Listindex

Feb 15, 2011

I am trying to get the following VB6 listindex to work within my vb.net

setTheR CStr(payReq.ItemData(payReq.ListIndex))

But if i copy and paste that into VB.net it wont accept it.

This is what VB.net did with the converting of the VB6 to .net

strContract = payReq.Items.Item(payReq.FocusedItem.Index).Text

However, checking that value it returns the name instead of the index. While the VB6 code returns the value of 2311 (which is what it needs to return)

When i add items to the listview i do this:

Item = payReq.Items.Add(rsPayRequests.Fields("userid").Value)
Item.SubItems.Insert(1, New System.Windows.Forms.ListViewItem.ListViewSubItem(Nothing,

[Code]...

But that does not work with my listview in .net since that above is a listbox and not a listview. Is there an equivalent in .net for the listbox to have a custom index?

View 2 Replies

VS 2010 What Is The Equivalent To Java Properties In VB

Jun 1, 2010

Is there an equivalent to Java Properties in VB. A Properties file in java is a place where you can save propeties for an application. So if an application looks at a file on a server (which could change) you could save to location in a properties file the if the location changes you just change the properties file. You do not have to recompile the program.

View 2 Replies

What's The Equivalent Code Of This In VB Express 2010

Jun 13, 2011

got this code from this site: [URL] public static void Send(String from, String to, String subject, String messageText).

SmtpMail.Send("mcb@mindcracker.com", "webmaster@mindcracker.com", "Subject", "Message body").

what's the equivalent code of this in vb express 2010.

View 4 Replies

Path Of .zip file Has Spaces In It / It's Not Recognizing Path As Valid Path

Aug 22, 2006

I have a Access program and I'm using VBA code in the background to run Winunzip using shell command. Well, the path of the .zip file has spaces in it and it's not recongizing the path as a valid path. Is there a another way to tackle this problem besides the shell?I can't us pkzip either. Has you can see I had to use progra~1 instead of Program Files.[code]

View 2 Replies

VS 2010 App DLL Path

Sep 10, 2010

I am working on a vb.net form app. When I run the app it looks for a dll I have in the directory the exe is in, is there a way to change it so that it looks in a different folder? [code]

View 3 Replies

VS 2010 File Path Name?

Feb 11, 2011

I working with deploying my project atm and i am running into an issue. I have the following code in my program as part of a select statement. It works with no issue inside the test environment.

[Code]...

View 2 Replies

VS 2010 Path To Reference Different?

May 29, 2012

I installed an application with an Oracle.DataAccess.dll on multiple pc's.The problem is that the location of the reference is different on all pc's.Is there a way to catch this problem or do I have to put the .dll in a central place on the clients pc?

View 4 Replies

VS 2010 Write To Path?

May 25, 2012

I'm trying to make a button called "Save" which saves all of the information entered into the textboxes as a .txt document. I'm very notice in this language and I don't know how to do it.

View 10 Replies

VS 2010 - Return To Applications Path?

Mar 21, 2012

I have one small problem on my app, here's the deal, when I run my app that have a button for "load playlist" and when I click on file>options my app is looking for settings.xml (created before by the same app) on the same folder from where I loaded my playlist. Load playlist button is on my Form1 and Form4, and settings is on my Form6, and this happend every time I load anything, open anything, so my app remembers last opened folder. Is there any way that I can return my path to apps path? I need to mention that this applies only to Windows XP, idk why, because on my win7 it works just fine.

View 13 Replies

VS 2010 : Get Path Of Background Image?

Jun 4, 2010

How would I get the file path of my form's background image? I tried me.backgroundimage.tostring but it always came back as something like system.forms.bitmap or something.

View 2 Replies

VS 2010 Get PATH From A Resource FILE?

Nov 15, 2011

I need to get a path from a resource file...

im planning to do a midi player; I've tried it via the included .NET and DirectX component, both needs a path to the audio file (String)....

how do I get a path from a resource file?

ps.: there's also a way to play via a stream-link/stream-player, where

my.resource.<filename> is enough, as this declares the directstream.... but I really need to get a path.

View 2 Replies

VS 2010 Path For External Application?

May 3, 2011

I guess this one is pretty basic, yet i have not been able to figure out.So here's the deal, my application uses an external exe to generate some txt files that the application needs for a use case. Since hard coding the path of such exe would be hideously wrong in so many aspects i would like to include a little configuration option for the user, so he can specify the path of the external exe for the application to be used.I also would like to have something like that for the path of the Database I'm actually using.

View 2 Replies

VS 2010 Program Files Path On 64 Bit?

Oct 16, 2010

I need to get the 64 bit program files directory and I'd rather not hard code it. When dealing with the 32 bit folder, I can just easily use this: Environment.SpecialFolder.ProgramFiles.I couldn't find a way to target the 64 bit folder without hard coding the path. At the moment, I'm getting the drive letter of the OS drive and concatenating it with "Program Files.

View 5 Replies

VS 2010 Replace (end Of) String (path)?

May 11, 2011

I have a treeview with a few files. The node.tag contains the path. Now, when I change the e.label I also need to change the tag of the node.

Let's say the current tag of node "test.txt" is "C:Folder1 est.txt " and I change it to "blabla.txt", the tag needs to be changed to "C:Folder1labla.txt"

View 4 Replies

VS 2010 Resource To Temp Path?

Mar 26, 2012

I'm trying to put my resource in the temp path instead of my local path.

here's what I have so far:

Dim TempPath As String
TempPath = System.IO.Path.GetTempPath
Dim ResourceManager As Resources.ResourceManager

[code]....

problem is, nothing happens when I click my button.

View 8 Replies

VS 2010 Search For The Path From The HEX Code?

Aug 16, 2011

I'm in need of a simple database for a program I'm writing...First, here's some info on what I want to do, so you can even tell me if a database is what I would need to accomplish it.It needs to have a single table, with two columns.First column will hold only 8 digit HEX codes (can be stored in a string if need be) - every entry will be unique Second column will hold a file path I need to be able to search for the path from the HEX code.I was able to create and link to an SQL Server Express DB in VB by using this tutorial: [URL]But that just create's and links the database, without telling me the code on how to manipulate it.

View 14 Replies

VS 2010 Shortest Path Algorithm VB?

Jan 28, 2012

C#.Can some one provide me the simplest solution to Shortest Path algorithm (source code) based on VB? I could not find any useful sample on the internet as almost all of them are written in Java or

View 4 Replies

VS 2010 The Given Path's Format Is Not Supported?

Jun 1, 2011

Yeah okay so, I am sure my directory exists, I just do not understand why this errors gets sput out..

vb.net
For Each file As String In My.Computer.FileSystem.GetFiles(CurDir() + "/" + dlgAddSM.FileChosen + "/StaticMesh") MsgBox(file)

[code].....

View 4 Replies

VS 2010 What's Equivalent Method In .NET Of Picture1.Scale Method In 6.0

Jun 12, 2011

What's the equivalent method in .NET of the Picture1.Scale (0,0)-(10,10) method in 6.0?

View 2 Replies

2010 ListView Selected Item Path

Aug 23, 2011

I got a listview and when i click on an item, it views the item's safefilename on a label:[code]

View 4 Replies

Upgrade Path From VB6 (To VS2005Pro, 2008, 2010)?

Jan 20, 2011

I have been using VB6 forever, but I need to to create new app versions for Vista/7, and beyond. My employer bought Visual Studio 2005 Pro a few years back, but i have never opened it.What would be the best upgrade step for me from VB6? Is 2005 adequate, or 2008, or 2010?

We primarily create apps for building and hardware controls, monitoring, logging, and communications. Will be using MySQL in the cloud with apps too.

View 5 Replies

VS 2010 - Command Prompt Path Was Not Default

Mar 27, 2012

Command prompt's path wasnt default. How can we change that path. In mine it writes "c:usersusername>".

View 8 Replies

VS 2010 Change Path Of Dataset Reading?

Aug 19, 2010

In my application, I have a dataset, automatically created by the VB, called "Batabase1Dataset".This dataset, will "connect" to the file Database1. sdf in the directory of my solution..Is some moment of the program, I need the dataset will read the data from the file "c;estdatabase1.sdf", instead the file: "....MyAppdatabase1.sdf"..How can I change the path of the dataset reading?

View 3 Replies

VS 2010 Get The Original Path Of EXE To Which The Shortcut Is Referring To

May 22, 2011

I use the following code to get the shortcut files in a folder and to list them in a Listview control. But is there a way to extract the path of the EXE to which this shortcut is referring to ?

vb.net
Dim di As New IO.DirectoryInfo("C: est")
Dim aryFi As IO.FileInfo() = di.GetFiles()
Dim fi As IO.FileInfo

[Code]...

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved