Click here to Skip to main content
15,902,189 members
Home / Discussions / C#
   

C#

 
GeneralRe: Accessing Parallel Port Pin
Dave Kreskowiak19-Jul-04 15:31
mveDave Kreskowiak19-Jul-04 15:31 
GeneralRe: Accessing Parallel Port Pin
eggie519-Jul-04 18:23
eggie519-Jul-04 18:23 
Generaltrap state changes (standbye, hibernate, etc) Pin
vista2719-Jul-04 11:31
vista2719-Jul-04 11:31 
GeneralRe: trap state changes (standbye, hibernate, etc) Pin
Heath Stewart19-Jul-04 11:45
protectorHeath Stewart19-Jul-04 11:45 
GeneralRe: trap state changes (standbye, hibernate, etc) Pin
vista2719-Jul-04 13:57
vista2719-Jul-04 13:57 
GeneralRe: trap state changes (standbye, hibernate, etc) Pin
Heath Stewart20-Jul-04 3:40
protectorHeath Stewart20-Jul-04 3:40 
GeneralCultureInfo for unsupported Culture Pin
Colin Angus Mackay19-Jul-04 11:25
Colin Angus Mackay19-Jul-04 11:25 
GeneralRe: CultureInfo for unsupported Culture Pin
Heath Stewart19-Jul-04 11:40
protectorHeath Stewart19-Jul-04 11:40 
You could extend CultureInfo hypothetically, but you'll have to override every virtual member. The CultureInfo ctor won't accept an unrecognized LCID or name.

Getting satellite resources isn't that hard, however. The problem is overriding ResourceManager so that you can tell it which resource assembly to grab for unsupported CultureInfos.

I have written such code fairly easily (all the power you need is pretty much defined on the Assembly class, like GetSatelliteAssembly) and have extended the ResourceManager to do so. Either way, you're going to have to write some code. Since the current ResourceManager works with CultureInfo class, you may have the best luck extending CultureInfo and overriding everything necessary (basically, keep your own look-up table of information; currently, localization in .NET P/Invokes some of this functionality from native APIs).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: CultureInfo for unsupported Culture Pin
Colin Angus Mackay20-Jul-04 2:39
Colin Angus Mackay20-Jul-04 2:39 
GeneralRe: CultureInfo for unsupported Culture Pin
Heath Stewart20-Jul-04 3:56
protectorHeath Stewart20-Jul-04 3:56 
GeneralRe: CultureInfo for unsupported Culture Pin
Colin Angus Mackay20-Jul-04 10:45
Colin Angus Mackay20-Jul-04 10:45 
GeneralVery simple search on a form Pin
janigorse19-Jul-04 10:59
janigorse19-Jul-04 10:59 
GeneralRe: Very simple search on a form Pin
Heath Stewart19-Jul-04 11:23
protectorHeath Stewart19-Jul-04 11:23 
Generalintegrate context menu with shell Pin
goooooooogle19-Jul-04 9:52
goooooooogle19-Jul-04 9:52 
GeneralRe: integrate context menu with shell Pin
Nick Parker19-Jul-04 10:40
protectorNick Parker19-Jul-04 10:40 
GeneralRe: integrate context menu with shell Pin
Dave Kreskowiak19-Jul-04 15:24
mveDave Kreskowiak19-Jul-04 15:24 
GeneralRichTextBox Question Pin
bneacetp19-Jul-04 9:44
bneacetp19-Jul-04 9:44 
GeneralRe: RichTextBox Question Pin
leppie19-Jul-04 11:12
leppie19-Jul-04 11:12 
GeneralRe: RichTextBox Question Pin
Heath Stewart19-Jul-04 11:31
protectorHeath Stewart19-Jul-04 11:31 
GeneralRe: RichTextBox Question Pin
bneacetp19-Jul-04 11:40
bneacetp19-Jul-04 11:40 
GeneralPrint button with SSRS Pin
clydeJones19-Jul-04 8:51
clydeJones19-Jul-04 8:51 
GeneralDynamic Help Using HtmlHelp API and COM Interfaces Pin
JimmyG1319-Jul-04 7:57
JimmyG1319-Jul-04 7:57 
GeneralKeyDown event is not firing while draging node on treeview Pin
god4k19-Jul-04 6:51
god4k19-Jul-04 6:51 
GeneralRe: KeyDown event is not firing while draging node on treeview Pin
leppie19-Jul-04 6:59
leppie19-Jul-04 6:59 
GeneralRe: KeyDown event is not firing while draging node on treeview Pin
Heath Stewart19-Jul-04 9:10
protectorHeath Stewart19-Jul-04 9:10 

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.