Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
Generalobj/<name>.pdb problems Pin
Arch Stanton21-Jan-04 13:01
Arch Stanton21-Jan-04 13:01 
GeneralRe: obj/<name>.pdb problems Pin
LongRange.Shooter22-Jan-04 9:19
LongRange.Shooter22-Jan-04 9:19 
GeneralRe: obj/<name>.pdb problems Pin
Arch Stanton22-Jan-04 14:13
Arch Stanton22-Jan-04 14:13 
Generalbackground program to capture a key press Pin
mikemilano21-Jan-04 11:51
mikemilano21-Jan-04 11:51 
GeneralRe: background program to capture a key press Pin
Heath Stewart21-Jan-04 17:32
protectorHeath Stewart21-Jan-04 17:32 
GeneralLooking for IT Professionals on H1B Visa Transfer/Faster GreenCard Processing Pin
Keith_00221-Jan-04 10:39
Keith_00221-Jan-04 10:39 
GeneralInternationalization in C# Pin
Member 16792721-Jan-04 10:29
Member 16792721-Jan-04 10:29 
GeneralRe: Internationalization in C# Pin
Heath Stewart21-Jan-04 11:16
protectorHeath Stewart21-Jan-04 11:16 
You don't reall use Unicode, per se. Strings are either ASCII or Unicode. In .NET and Java, all strings are natively Unicode. You really only have to worry about this when marshaling strings to native calls or with stream encodings.

If you're creating your component at runtime using an XML file, when you read the values of properties use the TypeDescriptor to get the PropertyDescriptor or use reflection to see if the property is attributed with the LocalizableAttribute and the value is true. If so, use an instance of a ResourceManager that specifies a Type (this doesn't have to be the Type of the component you're essentially deserializing) and use GetObject to read the information from the resources file.

There are several good articles both on CodeProject and MSDN about localization using the ResourceManager and ResX files (compiled to binary .resources files and embedded into the primary assembly as the neutral language resources, or into satellite assemblies). See Localized Property Grid[^] (good because it deals with dynamically reading resource names) and the introduction to localization in .NET on MSDN at http://msdn.microsoft.com/library/en-us/vbcon/html/vxoriglobalizationlocalizationnamespaces.asp[^].

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralReferencing a control Pin
Daniel Negron21-Jan-04 10:25
Daniel Negron21-Jan-04 10:25 
GeneralRe: Referencing a control Pin
Heath Stewart21-Jan-04 11:08
protectorHeath Stewart21-Jan-04 11:08 
QuestionModal UserControl, exist some way? Pin
Palladino21-Jan-04 8:48
Palladino21-Jan-04 8:48 
AnswerRe: Modal UserControl, exist some way? Pin
Mazdak21-Jan-04 9:04
Mazdak21-Jan-04 9:04 
AnswerRe: Modal UserControl, exist some way? Pin
Heath Stewart21-Jan-04 11:05
protectorHeath Stewart21-Jan-04 11:05 
GeneralProblem inserting data into a database from a textbox Pin
kymyatha21-Jan-04 7:59
kymyatha21-Jan-04 7:59 
GeneralRe: Problem inserting data into a database from a textbox Pin
Guillermo Rivero21-Jan-04 8:03
Guillermo Rivero21-Jan-04 8:03 
GeneralRe: Problem inserting data into a database from a textbox Pin
Mazdak21-Jan-04 8:05
Mazdak21-Jan-04 8:05 
GeneralRe: Problem inserting data into a database from a textbox Pin
Heath Stewart21-Jan-04 8:22
protectorHeath Stewart21-Jan-04 8:22 
GeneralRe: Problem inserting data into a database from a textbox Pin
gmu0421-Jan-04 22:26
gmu0421-Jan-04 22:26 
QuestionRaw socket handling tcp syn without SIO_RCVALL ? Pin
rantanplanisback21-Jan-04 7:42
rantanplanisback21-Jan-04 7:42 
GeneralArrayList Pin
hornshoj21-Jan-04 7:41
hornshoj21-Jan-04 7:41 
GeneralRe: ArrayList Pin
Heath Stewart21-Jan-04 8:17
protectorHeath Stewart21-Jan-04 8:17 
GeneralScrolling on mouse down/move Pin
MrEyes21-Jan-04 6:15
MrEyes21-Jan-04 6:15 
GeneralRe: Scrolling on mouse down/move Pin
Mazdak21-Jan-04 6:22
Mazdak21-Jan-04 6:22 
GeneralRe: Scrolling on mouse down/move Pin
Heath Stewart21-Jan-04 7:51
protectorHeath Stewart21-Jan-04 7:51 
GeneralRe: Scrolling on mouse down/move Pin
Mazdak21-Jan-04 8:02
Mazdak21-Jan-04 8:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.