473,320 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Application.ProductName

A.M
Hi,

In vb.bet we have Application object that gives us information about
application name and path (like Application.ProductName). How can i have
Application object functionality in C# ?

Thanks,
Ali
Nov 15 '05 #1
2 6467
Ali,

The ProductName property is a member of the Application class, which is
in the System.Windows.Forms namespace. It is accessible to C# in the same
way that it is accessible to VB. As a matter of fact, if you look at the
template for any Windows Forms application project, you will notice that the
Main method has a call to Application.Run, which is the same Application
type used in VB.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"A.M" <IH*******@sapm123.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

In vb.bet we have Application object that gives us information about
application name and path (like Application.ProductName). How can i have
Application object functionality in C# ?

Thanks,
Ali

Nov 15 '05 #2

Hi,

Thanks for posting in this group.
Based on my understanding, you want to get the Application object
functionality in C#.
Actually, the Application object are the type of
System.Windows.Forms.Application class, which is a class of .Net Class
Library. It is not the feature of VB.net, it is common to all .Net
language, so you can use it freely in C#.
If you look up in MSDN, you will find that all the members of Application
class are static field, so you can use it freely without construct an
instance of Application class.

If you still have anything unclear, please feel free to tell me.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #3

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

Similar topics

2
by: Phil Galey | last post by:
I created a VB.NET application, together with an associated installation project, and in the installation project I specified the ProductName. But when I run the application, if I try to retrieve...
2
by: Chang | last post by:
how to get the name of a running application using C# e.g. if i have 20 dll files and my application name is MyGreatApplication then how to get the name "MyGreatApplication" at runtime? thx in...
1
by: DemonIT | last post by:
Hi, I am trying to set the status bar of my form to include the product name and product version. Here is my code: Private Sub initStatusBar() Dim sSBText as String =...
3
by: GrandpaB | last post by:
I have generated the following code: lblCompany.Text = "Company Name: " & Application.CompanyName lblProduct.Text = "Product Name: " & Application.ProductName lblVersion.Text = "Version " &...
8
by: mike2036 | last post by:
I have an application (that has unmanaged code) and when I launch it without 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set 'FullTrust' permissions, it launches fine. Is...
6
by: beaker | last post by:
Hello, Is there a way to get the name of my application (as it appears on the list of processes running) at runtime? (Something to do with System.Reflection...?) Thanks, Gary
2
by: Chubbly Geezer | last post by:
Does anyone have any experience of this functionality. I have started to swap out my connection code for the std functionality within these dll's. The data connection is fine, I can also run...
1
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Hello, friends, In our c#.net 2005 project, I clicked on project property. At application tab of property page, clicked on Assembly Information... button, All boxes were left blank, including...
1
by: Cind | last post by:
I have to populate a listbox with details of a particular customer. For example, you may want to view a Customer with the current products for that Customer. List Box should display the current...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.