Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
Questioncalender view with events extract from database Pin
benjamin yap27-May-09 15:27
benjamin yap27-May-09 15:27 
QuestionLoad pID and productname to combobox - c sharp. Pin
misCafe27-May-09 15:04
misCafe27-May-09 15:04 
AnswerRe: Load pID and productname to combobox - c sharp. Pin
Satish Pai27-May-09 19:20
Satish Pai27-May-09 19:20 
GeneralRe: Load pID and productname to combobox - c sharp. Pin
ScottM127-May-09 20:47
ScottM127-May-09 20:47 
GeneralRe: Load pID and productname to combobox - c sharp. Pin
misCafe27-May-09 22:47
misCafe27-May-09 22:47 
GeneralRe: Load pID and productname to combobox - c sharp. Pin
ScottM127-May-09 22:54
ScottM127-May-09 22:54 
QuestionActiveX component problems Pin
rasikrodri27-May-09 13:43
rasikrodri27-May-09 13:43 
QuestionTesting Localized Form (Debug vs non-Debug) Pin
cpl27-May-09 13:43
cpl27-May-09 13:43 
I have a localized form set up with default, en-CA and fr-CA languages. I tried testing the form, for each of the languages by changing the HKCU\Software\Policies\Microsoft\Control Panel\Desktop\MultiUILanguageID value between 0409 (en-US), 1009 (en-CA) and 0C0C (fr-CA). The correct localized text is displayed everytime I test the form without debugging but not when I test using VS debugger.

Here's what I do:
1. Create a localized form with a button which closes the form.
2. Update HKCU\Software\Policies\Microsoft\Control Panel\Desktop\MultiUILanguageID value to 0C0C (was originally 0409)
3. From Visual Studio IDE window, choose "Start without Debugging"
4. Form displays with French text as expected
5. Update HKCU\Software\Policies\Microsoft\Control Panel\Desktop\MultiUILanguageID value to 1009
6. From Visual Studio IDE window, choose "Start without Debugging"
7. Form now displays with Canadian English text - again, as expected
8. Update HKCU\Software\Policies\Microsoft\Control Panel\Desktop\MultiUILanguageID value back to 0C0C
9. From Visual Studio IDE window, choose "Start Debugging"
10. Form displays with Canadian English text - expected to be French
11. Repeat step 9 above - without touching the registry value (still 0C0C)
12. Form now displays in French as expected

I noticed that if I want the form to display in the correct language, in debug mode, I need to run it twice after changing the registry value.

I test by changing HKCU\Software\Policies\Microsoft\Control Panel\Desktop\MultiUILanguageID value because I don't want to change locale in Control Panel everytime. Is this test valid? If so, does anyone know why my test results are different between "Debug" and 'non-Debug"?

Thank you.

cpl
QuestionUpdate records problem Pin
desir10227-May-09 13:15
desir10227-May-09 13:15 
AnswerRe: Update records problem Pin
Vimalsoft(Pty) Ltd27-May-09 20:50
professionalVimalsoft(Pty) Ltd27-May-09 20:50 
QuestionWhy multiselected text files don't open in more tabs Pin
Aljaz11127-May-09 13:08
Aljaz11127-May-09 13:08 
AnswerRe: Why multiselected text files don't open in more tabs Pin
Luc Pattyn27-May-09 13:40
sitebuilderLuc Pattyn27-May-09 13:40 
GeneralRe: Why multiselected text files don't open in more tabs [modified] Pin
Aljaz11127-May-09 13:51
Aljaz11127-May-09 13:51 
GeneralRe: Why multiselected text files don't open in more tabs Pin
Luc Pattyn27-May-09 14:26
sitebuilderLuc Pattyn27-May-09 14:26 
GeneralRe: Why multiselected text files don't open in more tabs Pin
Aljaz11127-May-09 14:29
Aljaz11127-May-09 14:29 
GeneralRe: Why multiselected text files don't open in more tabs Pin
Luc Pattyn27-May-09 14:38
sitebuilderLuc Pattyn27-May-09 14:38 
GeneralRe: Why multiselected text files don't open in more tabs Pin
Aljaz11127-May-09 14:55
Aljaz11127-May-09 14:55 
GeneralRe: Why multiselected text files don't open in more tabs Pin
Luc Pattyn27-May-09 14:58
sitebuilderLuc Pattyn27-May-09 14:58 
GeneralRe: Why multiselected text files don't open in more tabs Pin
Aljaz11127-May-09 15:25
Aljaz11127-May-09 15:25 
GeneralRe: Why multiselected text files don't open in more tabs Pin
Luc Pattyn27-May-09 15:33
sitebuilderLuc Pattyn27-May-09 15:33 
QuestionC++ to C# (struct) Pin
Mohammad Dayyan27-May-09 12:57
Mohammad Dayyan27-May-09 12:57 
AnswerRe: C++ to C# (struct) [not an answer] Pin
Colin Angus Mackay27-May-09 13:27
Colin Angus Mackay27-May-09 13:27 
GeneralRe: C++ to C# (struct) [not an answer] Pin
Mohammad Dayyan27-May-09 14:00
Mohammad Dayyan27-May-09 14:00 
GeneralRe: C++ to C# (struct) [not an answer] Pin
Colin Angus Mackay27-May-09 20:50
Colin Angus Mackay27-May-09 20:50 
AnswerRe: C++ to C# (struct) Pin
Adam Maras27-May-09 14:53
Adam Maras27-May-09 14:53 

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.