Click here to Skip to main content
15,893,668 members
Home / Discussions / C#
   

C#

 
QuestionHow to attach context menu to array of controls? Pin
Kranti12519842-May-06 23:30
Kranti12519842-May-06 23:30 
QuestionHow to get font from a winForm control of another application? Pin
snowborderjiang2-May-06 23:23
snowborderjiang2-May-06 23:23 
AnswerRe: How to get font from a winForm control of another application? Pin
alexey N2-May-06 23:28
alexey N2-May-06 23:28 
GeneralRe: How to get font from a winForm control of another application? Pin
snowborderjiang3-May-06 16:37
snowborderjiang3-May-06 16:37 
QuestionFile Hiding Pin
Prashant Gadhave2-May-06 23:23
Prashant Gadhave2-May-06 23:23 
AnswerRe: File Hiding Pin
J4amieC3-May-06 0:16
J4amieC3-May-06 0:16 
GeneralRe: File Hiding Pin
Travis D. Mathison3-May-06 3:03
Travis D. Mathison3-May-06 3:03 
QuestionReources Pin
V.2-May-06 22:12
professionalV.2-May-06 22:12 
Hi,

I've managed to call the resources for my exe with no problem.
This exe calls a dll with it's own resources and here I get the following error when I call the GetString("Resourcekey") method:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "DivRrn.Resources.resources" was correctly embedded or linked into assembly "DivRrn" at compile time, or that all the satellite assemblies required are loadable and fully signed.

I've checked and double checked, but I can't find my error:
Here's the code:
<br />
private void LoadLanguage(string language) {<br />
  string langcode = "en-US";<br />
  language = language.ToUpper();<br />
  switch(language) {<br />
    	case "DUTCH":<br />
    	case "NEDERLANDS":<br />
    	case "NEERLANDAIS":<br />
    	case "NE": langcode = "nl-BE";<br />
    break;<br />
    	case "FRANS":<br />
    	case "FRENCH":<br />
    	case "FRANCAIS":<br />
    	case "FR": langcode = "fr-FR";<br />
    	break;<br />
    case "ENGLISH":<br />
    	case "ENGELS":<br />
	    case "ANGLAIS":<br />
    	case "EN": langcode = "en-US";<br />
	    break;<br />
    	default: langcode = "en-US";<br />
    	break;<br />
  }						//end switch<br />
  resourcemanager = new ResourceManager("DivRrn.Resources", Assembly.GetExecutingAssembly());<br />
  Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(langcode);<br />
}									//end method LoadLanguage<br />


and the error I get in this part:
<br />
<br />
private void LoadLabels() {<br />
  gb_identity.Text	= resourcemanager.GetString("gb_identity.Text");  //error here<br />
  lbl_regnrintl.Text	= resourcemanager.GetString("lbl_regnrintl.Text");<br />
  lbl_idcardnr.Text	= resourcemanager.GetString("lbl_idcardnr.Text");<br />
  //Snipped here<br />
  lbl_state.Text		= resourcemanager.GetString("lbl_state.Text");<br />
		}


Can anybody help me?
tnx!

Coulda, woulda, shoulda doesn't matter if you don't.
<marquee>Jig | [Dance] Jig | [Dance] Jig | [Dance] Jig | [Dance] Jig | [Dance] Jig | [Dance] Jig | [Dance] Jig | [Dance] Jig | [Dance] Jig | [Dance] Jig | [Dance]
AnswerRe: Reources Pin
Travis D. Mathison3-May-06 2:44
Travis D. Mathison3-May-06 2:44 
GeneralRe: Reources Pin
V.3-May-06 3:29
professionalV.3-May-06 3:29 
GeneralRe: Reources Pin
Travis D. Mathison3-May-06 3:45
Travis D. Mathison3-May-06 3:45 
GeneralRe: Reources Pin
V.3-May-06 3:58
professionalV.3-May-06 3:58 
QuestionASPNET or NETWORK SERVICE Pin
Andrey.Mazoulnitsyn2-May-06 21:59
Andrey.Mazoulnitsyn2-May-06 21:59 
QuestionProblem using Crystal Report in C# Pin
Naveed N Malik2-May-06 21:40
Naveed N Malik2-May-06 21:40 
QuestionError Pin
Hamid_RT2-May-06 20:46
Hamid_RT2-May-06 20:46 
GeneralRe: Error Pin
Guffa2-May-06 21:23
Guffa2-May-06 21:23 
GeneralRe: Error Pin
Hamid_RT2-May-06 21:42
Hamid_RT2-May-06 21:42 
AnswerRe: Error Pin
Travis D. Mathison3-May-06 2:21
Travis D. Mathison3-May-06 2:21 
GeneralRe: Error Pin
Hamid_RT3-May-06 3:05
Hamid_RT3-May-06 3:05 
GeneralRe: Error Pin
Travis D. Mathison3-May-06 3:40
Travis D. Mathison3-May-06 3:40 
GeneralRe: Error Pin
Hamid_RT3-May-06 3:51
Hamid_RT3-May-06 3:51 
GeneralRe: Error Pin
Travis D. Mathison3-May-06 4:16
Travis D. Mathison3-May-06 4:16 
GeneralRe: Error Pin
Hamid_RT3-May-06 4:32
Hamid_RT3-May-06 4:32 
Questionwindows messaging constants Pin
kumar.bs2-May-06 20:38
kumar.bs2-May-06 20:38 
AnswerRe: windows messaging constants Pin
alexey N2-May-06 20:53
alexey N2-May-06 20: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.