Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to extend System.Int32? Pin
leppie2-Jun-03 8:00
leppie2-Jun-03 8:00 
GeneralRe: How to extend System.Int32? Pin
Eric Gunnerson (msft)3-Jun-03 9:47
Eric Gunnerson (msft)3-Jun-03 9:47 
AnswerRe: How to extend System.Int32? Pin
leppie1-Jun-03 0:39
leppie1-Jun-03 0:39 
GeneralRe: How to extend System.Int32? Pin
David Stone2-Jun-03 9:50
sitebuilderDavid Stone2-Jun-03 9:50 
GeneralSetting Form's size problems Pin
Acidis31-May-03 11:38
Acidis31-May-03 11:38 
GeneralRe: Setting Form's size problems Pin
J. Dunlap31-May-03 11:42
J. Dunlap31-May-03 11:42 
GeneralRe: Setting Form's size problems Pin
Acidis31-May-03 11:47
Acidis31-May-03 11:47 
GeneralRe: Setting Form's size problems Pin
James T. Johnson31-May-03 18:06
James T. Johnson31-May-03 18:06 
GeneralRe: Setting Form's size problems Pin
Acidis31-May-03 19:36
Acidis31-May-03 19:36 
GeneralRe: Setting Form's size problems Pin
James T. Johnson31-May-03 19:59
James T. Johnson31-May-03 19:59 
GeneralMenue by Marc Clifton Pin
Frenchi31-May-03 9:46
Frenchi31-May-03 9:46 
GeneralRe: Menue by Marc Clifton Pin
Marc Clifton31-May-03 15:33
mvaMarc Clifton31-May-03 15:33 
GeneralRe: Menue by Marc Clifton Pin
Frenchi1-Jun-03 5:12
Frenchi1-Jun-03 5:12 
Questionto byte[] conversion? Pin
stonee7431-May-03 3:38
stonee7431-May-03 3:38 
AnswerRe: to byte[] conversion? Pin
Eric Gunnerson (msft)31-May-03 16:34
Eric Gunnerson (msft)31-May-03 16:34 
GeneralRe: to byte[] conversion? Pin
stonee7431-May-03 17:01
stonee7431-May-03 17:01 
GeneralRe: to byte[] conversion? Pin
Eric Gunnerson (msft)1-Jun-03 7:05
Eric Gunnerson (msft)1-Jun-03 7:05 
GeneralRe: to byte[] conversion? Pin
stonee741-Jun-03 8:04
stonee741-Jun-03 8:04 
GeneralRe: to byte[] conversion? Pin
Eric Gunnerson (msft)3-Jun-03 9:43
Eric Gunnerson (msft)3-Jun-03 9:43 
GeneralResource Troubles (MissingManifestResourceException) Pin
gek_at31-May-03 2:02
gek_at31-May-03 2:02 
Hi,

I'm building an application where I'd like to put icons in resources. However as I don't use VS.net but the free IDE SharpDevelop, this is not quite so simple. I created a new resource file by the name SharpPrivacyMain.resource with the Resourcer and saved it in the same directory as SharpPrivacyMain.cs.

In SharpPrivacyMain.cs I added the followin code:

<br />
MessageBox.Show(String.Join("\n\r", Assembly.GetExecutingAssembly().GetManifestResourceNames()));<br />
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(SharpPrivacyMain)); <br />
this.bmpMnuClipboard = ((Bitmap)resources.GetObject("$this.menuClipboard"));<br />


I get only get to resources.GetObject, then a MissingResourceException is thrown. The messagebox shows me "SharpPrivacyMain.resources", so it seems that the resource was correctly compiled into the assembly. And the Bitmap $this.menuClipboard is also in the resource file. When I doubleclick it in the resource editor of SharpPrivacy, I can even see the image.

I don't know if the problem comes from the IDE, or if I just can't write working programs Smile | :) .

Any help would be really appretiated!

The exact Exception message is:

[thread 0xd04] Unhandled exception generated: (0x04a96490) <System.Resources.Mis
singManifestResourceException>
  _className=<null>
  _exceptionMethod=<null>
  _exceptionMethodString=<null>
  _message=(0x04a96508) "Could not find any resources appropriate for the specif
ied culture (or the neutral culture) in the given assembly.  Make sure "SharpPri
vacyMain.resources" was correctly embedded or linked into assembly "SharpPrivacy
".
baseName: SharpPrivacyMain  locationInfo: SharpPrivacy.SharpPrivacyMain  resourc
e file name: SharpPrivacyMain.resources  assembly: SharpPrivacy, Version=0.1.0.0
, Culture=neutral, PublicKeyToken=null"
  _innerException=<null>
  _helpURL=<null>
  _stackTrace=(0x04a9685c) array with dims=[96]
  _stackTraceString=<null>
  _remoteStackTraceString=<null>
  _remoteStackIndex=0x00000000
  _HResult=0x80131532
  _source=<null>
  _xptrs=0x00000000
  _xcode=0xe0434f4d


Thanks in Advance,
Daniel
GeneralRe: Resource Troubles (MissingManifestResourceException) Pin
gek_at31-May-03 2:18
gek_at31-May-03 2:18 
GeneralRe: Resource Troubles (MissingManifestResourceException) Pin
David Stone31-May-03 6:23
sitebuilderDavid Stone31-May-03 6:23 
QuestionIf C# is Microsoft's answer to SUN's Java, then is C# Platform independent? Pin
Link260030-May-03 23:56
Link260030-May-03 23:56 
AnswerRe: If C# is Microsoft's answer to SUN's Java, then is C# Platform independent? Pin
Kannan Kalyanaraman31-May-03 0:56
Kannan Kalyanaraman31-May-03 0:56 
AnswerRe: If C# is Microsoft's answer to SUN's Java, then is C# Platform independent? Pin
David Stone31-May-03 6:15
sitebuilderDavid Stone31-May-03 6:15 

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.