all groups > visual studio .net general > august 2004 >
You're in the

visual studio .net general

group:

How to set Application.ProductName dynamically?


RE: How to set Application.ProductName dynamically? v-garych NO[at]SPAM online.microsoft.com (
8/31/2004 8:03:05 AM
visual studio .net general:
Hi James,

...yes, the Application.ProductName is one of the assembly attributes:
<Assembly: AssemblyProduct("")> 'if this is empty, it would be the
assembly name.

it would be hardcode into the assembly in the compile time.
So why not use a string object instead which you localize it in the
run-time?


Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
How to set Application.ProductName dynamically? James Wong
8/31/2004 12:54:43 PM
Dear all,

I'm developing an appliction for multi-language environment and want to know
how to set product name in different language. I found that AssemblyProduct
in AssemblyInfo seems to be static and cannot change Application.ProductName
in run-time.

Thanks for your attention and kindly help!

Regards,
James Wong

Re: How to set Application.ProductName dynamically? James Wong
8/31/2004 4:58:47 PM
Hi! Gary,

Thanks for your reply!

Do you mean that I should define my own string variable to store product
name instead of using Forms.Application.ProductName? Since in my previous
or existing applications (which are in local language only), I use
Forms.Application.ProductName to get product name. Now I need to modify
them into multi-language support, so I have to make it dynamic. If there is
no other means, I have to change my codes to redirect the source of product
name.

Regards,
James Wong


""Gary Chang"" <v-garych@online.microsoft.com> ¦b¶l¥ó
news:3bcC2DzjEHA.3628@cpmsftngxa10.phx.gbl ¤¤¼¶¼g...
[quoted text, click to view]

Re: How to set Application.ProductName dynamically? yhhuang NO[at]SPAM online.microsoft.com
9/1/2004 2:33:25 AM
Hi James,

Chua is right. Satellite Assemblies is what you need for resource
localization. Please refer to the following MSDN topic for more details on
how to create satellite assemblies and retrieve resources in satellite
assemblies.

"Resources in Applications"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconcreatingusingresources.asp

Hope that helps.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
-http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.as
p&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Re: How to set Application.ProductName dynamically? James Wong
9/1/2004 11:54:46 AM
Hi Yanhong and Chua,

Thanks for your reply! I'll study satellite assemblies to solve my problem.

Regards,
James Wong

"Yan-Hong Huang[MSFT]" <yhhuang@online.microsoft.com> ¦b¶l¥ó
news:spl1Sw8jEHA.2936@cpmsftngxa10.phx.gbl ¤¤¼¶¼g...
[quoted text, click to view]

AddThis Social Bookmark Button