HighTechTalks DotNet Forums  

How to set Application.ProductName dynamically?

Visual Studio.net (General) microsoft.public.vsnet.general


Discuss How to set Application.ProductName dynamically? in the Visual Studio.net (General) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
James Wong
 
Posts: n/a

Default How to set Application.ProductName dynamically? - 08-30-2004 , 11:54 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



Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default RE: How to set Application.ProductName dynamically? - 08-31-2004 , 03:03 AM






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.
--------------------


Reply With Quote
  #3  
Old   
James Wong
 
Posts: n/a

Default Re: How to set Application.ProductName dynamically? - 08-31-2004 , 03:58 AM



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 (AT) online (DOT) microsoft.com> 在郵件
news:3bcC2DzjEHA.3628 (AT) cpmsftngxa10 (DOT) phx.gbl 中撰寫...
Quote:
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.
--------------------




Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: How to set Application.ProductName dynamically? - 08-31-2004 , 09:33 PM



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! 每 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.


Reply With Quote
  #5  
Old   
James Wong
 
Posts: n/a

Default Re: How to set Application.ProductName dynamically? - 08-31-2004 , 10:54 PM



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 (AT) online (DOT) microsoft.com> 在郵件
news:spl1Sw8jEHA.2936 (AT) cpmsftngxa10 (DOT) phx.gbl 中撰寫...
Quote:
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! 每 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.




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.