Click here to Skip to main content
15,905,322 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to call a Page as an object in a method?? Pin
Guffa3-May-06 11:22
Guffa3-May-06 11:22 
QuestionHow to Connect to Dominos server from MS Outlook?? Pin
Bijon Roy3-May-06 0:43
Bijon Roy3-May-06 0:43 
AnswerRe: How to Connect to Dominos server from MS Outlook?? Pin
Daniele Ferrero3-May-06 4:20
Daniele Ferrero3-May-06 4:20 
QuestionHow to call a Page as an object in a method?? Pin
ryanchopps3-May-06 0:39
ryanchopps3-May-06 0:39 
AnswerRe: How to call a Page as an object in a method?? Pin
alexey N3-May-06 0:45
alexey N3-May-06 0:45 
GeneralRe: How to call a Page as an object in a method?? Pin
ryanchopps3-May-06 3:32
ryanchopps3-May-06 3:32 
QuestionHow to handle the mouse pointer using c# Pin
ranandbe3-May-06 0:06
ranandbe3-May-06 0:06 
AnswerRe: How to handle the mouse pointer using c# Pin
alexey N3-May-06 0:31
alexey N3-May-06 0:31 
AnswerRe: How to handle the mouse pointer using c# Pin
ranandbe3-May-06 0:37
ranandbe3-May-06 0:37 
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 

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.