Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How do i....

How do i....

Scheduled Pinned Locked Moved C#
csharpgraphicsgame-devtoolshelp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MMaines2005
    wrote on last edited by
    #1

    how would i get me Visual C# to load a image i have loaded to a resource files in this script: /// /// Load your graphics content. If loadAllContent is true, you should /// load content from both ResourceManagementMode pools. Otherwise, just /// load ResourceManagementMode.Manual content. /// /// Which type of content to load. protected override void LoadGraphicsContent(bool loadAllContent) { if (loadAllContent) { load(Resource1.logo); } // TODO: Load any ResourceManagementMode.Manual content } private void load(object logo) { throw new Exception("Help i don't know what i'm doing!!!"); } I have tried a hundred differnt ways and i keep gettign errors. Plz Help if you can :-D

    Michael (Up and coming Game programmer) EST

    L M M 3 Replies Last reply
    0
    • M MMaines2005

      how would i get me Visual C# to load a image i have loaded to a resource files in this script: /// /// Load your graphics content. If loadAllContent is true, you should /// load content from both ResourceManagementMode pools. Otherwise, just /// load ResourceManagementMode.Manual content. /// /// Which type of content to load. protected override void LoadGraphicsContent(bool loadAllContent) { if (loadAllContent) { load(Resource1.logo); } // TODO: Load any ResourceManagementMode.Manual content } private void load(object logo) { throw new Exception("Help i don't know what i'm doing!!!"); } I have tried a hundred differnt ways and i keep gettign errors. Plz Help if you can :-D

      Michael (Up and coming Game programmer) EST

      L Offline
      L Offline
      leckey 0
      wrote on last edited by
      #2

      Please give your messages more meaningful titles.

      __________________________ Don't drink and derive. Alcohol and calculus don't mix.

      1 Reply Last reply
      0
      • M MMaines2005

        how would i get me Visual C# to load a image i have loaded to a resource files in this script: /// /// Load your graphics content. If loadAllContent is true, you should /// load content from both ResourceManagementMode pools. Otherwise, just /// load ResourceManagementMode.Manual content. /// /// Which type of content to load. protected override void LoadGraphicsContent(bool loadAllContent) { if (loadAllContent) { load(Resource1.logo); } // TODO: Load any ResourceManagementMode.Manual content } private void load(object logo) { throw new Exception("Help i don't know what i'm doing!!!"); } I have tried a hundred differnt ways and i keep gettign errors. Plz Help if you can :-D

        Michael (Up and coming Game programmer) EST

        M Offline
        M Offline
        Matthew Cuba
        wrote on last edited by
        #3

        MMaines2005 wrote:

        how would i get me Visual C# to load a image i have loaded to a resource files in this script:

        If I wanted to, say, load an image from a resource and display it in my PictureBox, I might do this: myPictureBox.Image = Properties.Resources.myImageToDisplay;

        It isn't enough to do well in life. One must do good when and where one can. Otherwise, what's the point?

        1 Reply Last reply
        0
        • M MMaines2005

          how would i get me Visual C# to load a image i have loaded to a resource files in this script: /// /// Load your graphics content. If loadAllContent is true, you should /// load content from both ResourceManagementMode pools. Otherwise, just /// load ResourceManagementMode.Manual content. /// /// Which type of content to load. protected override void LoadGraphicsContent(bool loadAllContent) { if (loadAllContent) { load(Resource1.logo); } // TODO: Load any ResourceManagementMode.Manual content } private void load(object logo) { throw new Exception("Help i don't know what i'm doing!!!"); } I have tried a hundred differnt ways and i keep gettign errors. Plz Help if you can :-D

          Michael (Up and coming Game programmer) EST

          M Offline
          M Offline
          martin_hughes
          wrote on last edited by
          #4

          Are you using XNA? If so, here is a handy site you might like to refer to: http://www.xnatutorial.com/[^]

          Me: Can you see the "up" arrow? User:Errr...ummm....no. Me: Can you see an arrow that points upwards? User: Oh yes, I see it now! -Excerpt from a support call taken by me, 08/31/2007

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups