473,587 Members | 2,547 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# equivelent of VB 6 App.Path

I am looking to show the build information of an
application built in .Net C#. Back in the VB 6 days, I
was able to use the app.path property.

Does anyone know of an equivelant command in C#?

Gary
Nov 15 '05 #1
4 39245
I am looking to show the build information of an
application built in .Net C#. Back in the VB 6 days, I
was able to use the app.path property.

Does anyone know of an equivelant command in C#?

Gary


Hi,

try the System.Windows. Forms.Applicati on class

VB6 app.path would be Application.Sta rtupPath I suppose (don't know VB6 to
well.... :)

Ulf
Nov 15 '05 #2
Try Application.Sta rtupPath

-----Original Message-----
I am looking to show the build information of an
application built in .Net C#. Back in the VB 6 days, I
was able to use the app.path property.

Does anyone know of an equivelant command in C#?

Gary
.

Nov 15 '05 #3
Gary,
I am looking to show the build information of an
application built in .Net C#. Back in the VB 6 days, I
was able to use the app.path property.

Does anyone know of an equivelant command in C#?


Check out

http://www.fawcette.com/vsm/2002_10/...s/qa/page4.asp

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
Nov 15 '05 #4
Bill, I think this is what you need

string stAppPath1;

stAppPath1 = Environment.Cur rentDirectory;

Rich

"Bill Birt" <bi********@hot mail.com> wrote in message
news:01******** *************** *****@phx.gbl.. .
Gary,

I am an OLD VB programmer as well and find the .Net
framework changes the simple things we take for granted
in VB. Look at the Application class as it has several
methods that point to what the old App.Path property
pointed to.

Hope this example helps.

string path = Application.Use rAppDataPath;

Regards,

Bill
-----Original Message-----
Try Application.Sta rtupPath

-----Original Message-----
I am looking to show the build information of an
application built in .Net C#. Back in the VB 6 days, I
was able to use the app.path property.

Does anyone know of an equivelant command in C#?

Gary
.

.

Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
9492
by: Chris LaJoie | last post by:
I'm looking for the framework equivilent of either the ShellExec or WinExec API. Preferably ShellExec because I can use it to launch the default browser as well as launch executables. thanks.
7
22061
by: Poewood | last post by:
I store all my global functions in modules when using vb. What is the equivelent convention in C#. I am converting a .net compact frmwk project from vb to C#. Thanx, Poe
8
8484
by: bryan | last post by:
Is there any way I can get the application path (the one returned by Request.ApplicationPath) in the Application_Start method in Global.asax? Request is not valid there. On a related note, is there a way to get it from a static method in an aspx page, or in the class (static) constructor for an aspx page? Thanks, Bryan
3
1529
by: rss | last post by:
set rowcount 1 select Idnum1,Idnum3 from mytable order by Idnum1 DESC, idnum3 ASC is equivelent to select first(Idnum1),first(idnum3) from mytable order by first(Idnum1) DESC ,first(Idnum3) ASC Isn't that silly? why did Microsoft not add an agregate function First for the Microsoft SQL Server to be consistent with its Microsoft...
10
1833
by: Dave Cox | last post by:
of "int" in VB? //b=1.2 b=int(b) //b now equals 1
7
6280
by: lathamik | last post by:
Does anyone know of the vb.net equivelent to the c# continue so I can exit the immediate iteration of a for loop and continue with the next one.
23
1705
by: pirata | last post by:
I'm a bit confusing about whether "is not" equivelent to "!=" if a != b: ... if a is not b: ... What's the difference between "is not" and "!=" or they are the same thing?
21
2523
by: Mike N. | last post by:
Can someone tell me if there is a C# equivelent to the VBA 'with' statement that works like this: Set myControl = CommandBars(PopUpToUse).Controls.Add(msoControlButton, before:=5) With myControl .BeginGroup = True .Caption = "Insert Row(s)" .OnAction = "InsertRows" .FaceId = 295
0
8215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8347
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7973
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5718
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5394
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3844
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.