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

C#

 
QuestionLocalize Combo Box Dropdown Pin
Student119-Oct-07 21:36
Student119-Oct-07 21:36 
AnswerRe: Localize Combo Box Dropdown Pin
TJoe10-Oct-07 6:27
TJoe10-Oct-07 6:27 
GeneralRe: Localize Combo Box Dropdown Pin
Student1110-Oct-07 12:09
Student1110-Oct-07 12:09 
AnswerRe: Localize Combo Box Dropdown Pin
TJoe11-Oct-07 2:32
TJoe11-Oct-07 2:32 
GeneralRe: Localize Combo Box Dropdown Pin
Student1111-Oct-07 19:15
Student1111-Oct-07 19:15 
QuestionRe: Localize Combo Box Dropdown Pin
TJoe12-Oct-07 1:55
TJoe12-Oct-07 1:55 
AnswerRe: Localize Combo Box Dropdown Pin
Student1112-Oct-07 2:18
Student1112-Oct-07 2:18 
GeneralRe: Localize Combo Box Dropdown Pin
TJoe12-Oct-07 2:25
TJoe12-Oct-07 2:25 
I'd recommend creating a new Visual Studio project that you can play with. Then set the Localizable property to true in the test project, add a combo box, and add some strings to it. Then you can see how VS is adding the resources and using them.

VS does use a ResourceManager to manage the resources. You can add a "Resource" from the "Add Item to Project" menu option. Make sure you don't already have a resource in your project though.

Another option would be to add a new (temporary) Form to your existing project, set it's Localizable property to true, add a combo box, and add some strings to it. This will create the resource for you and give you a sample of how it works. Then delete the Form when you are done. This will leave the resource file, so you can use it in your existing forms.

To load strings in the combo box for your existing Form, you would do the same thing that the test Form did (in it's Form#.Designer.cs file). Except, you would put your code to add the items to the ComboBox in the constructor of your existing Form (after the InitializeComponents call).

Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

Questionapply foreach in a byte[] ArrayList Pin
Patricio Tapia9-Oct-07 21:24
Patricio Tapia9-Oct-07 21:24 
AnswerRe: apply foreach in a byte[] ArrayList Pin
JoeSharp9-Oct-07 21:56
JoeSharp9-Oct-07 21:56 
AnswerDo you mean... Pin
CPallini9-Oct-07 22:02
mveCPallini9-Oct-07 22:02 
GeneralRe: Do you mean... Pin
Martin#9-Oct-07 22:05
Martin#9-Oct-07 22:05 
GeneralOf course I know, but Pin
CPallini9-Oct-07 22:23
mveCPallini9-Oct-07 22:23 
GeneralRe: Of course I know that you know, but Pin
Martin#9-Oct-07 22:28
Martin#9-Oct-07 22:28 
GeneralBecause Pin
CPallini9-Oct-07 22:34
mveCPallini9-Oct-07 22:34 
GeneralRe: True Pin
Martin#9-Oct-07 22:41
Martin#9-Oct-07 22:41 
GeneralRe: True Pin
Patricio Tapia9-Oct-07 23:01
Patricio Tapia9-Oct-07 23:01 
GeneralRe: True Pin
Martin#9-Oct-07 23:06
Martin#9-Oct-07 23:06 
AnswerRe: apply foreach in a byte[] ArrayList Pin
Martin#9-Oct-07 22:02
Martin#9-Oct-07 22:02 
GeneralRe: apply foreach in a byte[] ArrayList Pin
Patricio Tapia9-Oct-07 22:34
Patricio Tapia9-Oct-07 22:34 
QuestionProtection for excel sheet Pin
iet20009-Oct-07 21:17
iet20009-Oct-07 21:17 
Questionclass problem Pin
ptvce9-Oct-07 21:13
ptvce9-Oct-07 21:13 
AnswerRe: class problem Pin
Martin#9-Oct-07 21:23
Martin#9-Oct-07 21:23 
GeneralRe: class problem Pin
ptvce9-Oct-07 21:40
ptvce9-Oct-07 21:40 
GeneralRe: class problem Pin
Martin#9-Oct-07 21:48
Martin#9-Oct-07 21:48 

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.