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

C#

 
GeneralRe: UPS Integration in asp.net 2.0 (C#) Pin
Dave Kreskowiak17-Jul-12 16:27
mveDave Kreskowiak17-Jul-12 16:27 
QuestionSelect an item in a listview Pin
Lucy23-Nov-07 0:24
Lucy23-Nov-07 0:24 
AnswerRe: Select an item in a listview Pin
mav.northwind23-Nov-07 0:51
mav.northwind23-Nov-07 0:51 
GeneralRe: Select an item in a listview Pin
Lucy23-Nov-07 1:12
Lucy23-Nov-07 1:12 
QuestionHelp in form cpu Utilisation Pin
superda23-Nov-07 0:23
superda23-Nov-07 0:23 
AnswerRe: Help in form cpu Utilisation Pin
Bekjong23-Nov-07 1:17
Bekjong23-Nov-07 1:17 
AnswerRe: Help in form cpu Utilisation Pin
Pete O'Hanlon23-Nov-07 3:20
mvePete O'Hanlon23-Nov-07 3:20 
QuestionCalling SatelliteAssembly in C#.NET Pin
PranavThakur23-Nov-07 0:13
PranavThakur23-Nov-07 0:13 
Hi,

I have created two different satellite assemblies corresponding to two languages specific resource files -english and french.I am calling these assemblies on the basis of the language selected from the combobox and changing the label text.Please refer to the code below:-

private void comboBox1_SelectedValueChanged(object sender, EventArgs e)
{
try
{
ResourceManager rm = null;

if (comboBox1.Text == "English")
{
rm = new ResourceManager("Satellite.en-US", Assembly.GetExecutingAssembly());
label1.Text = rm.GetString("String1");
}
else if (comboBox1.Text == "French")
{
rm = new ResourceManager("Satellite.fr-FR", Assembly.GetExecutingAssembly());
label1.Text = rm.GetString("String1");

}

}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}
}

The above code works fine and the label text is getting changed according the language selected.But I don't want to do this: rm = new ResourceManager("Satellite.en-US", Assembly.GetExecutingAssembly());

I want, .NET to detect the current culture of the system and refer the required dll.If the current culture is french then .NET should refer the french dll automatically.Is there any way to do this task.Actually in future if any new language is added then there is no need to add anything in the code.
AnswerRe: Calling SatelliteAssembly in C#.NET Pin
NassosReyzidis23-Nov-07 4:14
NassosReyzidis23-Nov-07 4:14 
GeneralRe: Calling SatelliteAssembly in C#.NET [modified] Pin
PranavThakur25-Nov-07 21:32
PranavThakur25-Nov-07 21:32 
GeneralRe: Calling SatelliteAssembly in C#.NET Pin
PranavThakur4-Dec-07 23:47
PranavThakur4-Dec-07 23:47 
QuestionDropDown in propertygrid Pin
Tanuja12323-Nov-07 0:00
Tanuja12323-Nov-07 0:00 
Questionhow to run client/server program in c# Pin
sivaramireddy p22-Nov-07 23:06
sivaramireddy p22-Nov-07 23:06 
AnswerStay away Pin
Andrei Ungureanu22-Nov-07 23:15
Andrei Ungureanu22-Nov-07 23:15 
AnswerRe: how to run client/server program in c# Pin
Pete O'Hanlon23-Nov-07 1:13
mvePete O'Hanlon23-Nov-07 1:13 
GeneralRe: how to run client/server program in c# Pin
Andrei Ungureanu23-Nov-07 1:15
Andrei Ungureanu23-Nov-07 1:15 
GeneralRe: how to run client/server program in c# Pin
Vasudevan Deepak Kumar23-Nov-07 3:47
Vasudevan Deepak Kumar23-Nov-07 3:47 
GeneralRe: how to run client/server program in c# Pin
Dave Kreskowiak23-Nov-07 5:26
mveDave Kreskowiak23-Nov-07 5:26 
GeneralRe: how to run client/server program in c# Pin
Luc Pattyn23-Nov-07 5:49
sitebuilderLuc Pattyn23-Nov-07 5:49 
GeneralRe: how to run client/server program in c# Pin
Rei Miyasaka23-Nov-07 13:30
Rei Miyasaka23-Nov-07 13:30 
QuestionPrint question Pin
Xmen Real 22-Nov-07 23:06
professional Xmen Real 22-Nov-07 23:06 
AnswerRe: Print question Pin
Pete O'Hanlon23-Nov-07 1:19
mvePete O'Hanlon23-Nov-07 1:19 
GeneralRe: Print question Pin
Xmen Real 23-Nov-07 2:00
professional Xmen Real 23-Nov-07 2:00 
Questionhow to convert an html file into pdf format(without lost of any information) Pin
chithra.r22-Nov-07 22:58
chithra.r22-Nov-07 22:58 
AnswerCross post - please ignore Pin
pmarfleet23-Nov-07 0:04
pmarfleet23-Nov-07 0:04 

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.