|
|
|
|
| re |
Web star provided a rated reply to Janardhan Bonthu on Wednesday, November 12, 2008 2:16 AM |
|
To set the UI Culture to view specific resources
- In the Code Editor, add the following code at the beginning of the module, before the Form1 declaration:
|
|
' Visual Basic
Imports System.Globalization
Imports System.Threading
// C#
using System.Globalization;
using System.Threading; |
- Add the following code. In Visual Basic, it should go in the New function, before calling the InitializeComponent function. In Visual C#, it should go in Form1() and also before calling the InitializeComponent function.
|
|
' Visual Basic
' Sets the UI culture to French (France)
Thread.CurrentThread.CurrentUICulture = New CultureInfo("fr-FR")
// C#
// Sets the UI culture to French (France)
Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR"); |
- Save and build the solution.
- Press the F5 key or choose Start from the Debug menu.
Now the form will be always displayed in French. If you changed the size of the button earlier to accommodate the longer French string, notice that the button size has also been persisted in the French resource file. http://msdn.microsoft.com/en-us/library/y99d1cd3(VS.71).aspx
|
| Reply Reply Using Power Editor |
| |
| |
Rank |
Winnings |
Points |
| November |
5 |
$55.00 |
143 |
| October |
10 |
$28.00 |
94 |
|
|
|
|
|
|
| see this link: |
Binny ch provided a rated reply to Janardhan Bonthu on Wednesday, November 12, 2008 4:04 AM |
|
http://mosesofegypt.net/post/2008/09/18/Localization5cGlobalization-Considerations-and-Tips.aspx |
| Reply Reply Using Power Editor |
| |
| |
Rank |
Winnings |
Points |
| November |
0 |
$0.00 |
0 |
| October |
0 |
$0.00 |
0 |
|
|
|
|
|
|
| TRY THIS LINK |
| C_A P replied to Janardhan Bonthu on Wednesday, November 12, 2008 6:50 AM |
|
http://www.microsoft.com/mspress/books/sampchap/6510.aspx http://www.suodenjoki.dk/us/productions/articles/localization.htm
|
| Reply Reply Using Power Editor |
| |
| |
Rank |
Winnings |
Points |
| November |
0 |
$0.00 |
0 |
| October |
0 |
$0.00 |
0 |
|
|
|
|
|
|
|