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. Visual Basic
  4. Problem accessing Resourses and Settings in visual studio 2008

Problem accessing Resourses and Settings in visual studio 2008

Scheduled Pinned Locked Moved Visual Basic
csharpvisual-studiohelptutorialquestion
5 Posts 2 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.
  • S Offline
    S Offline
    slam Iqbal
    wrote on last edited by
    #1

    I added some resourses in VS2008 (vb project). I have reinstall OS(XP). The resources that already added that can be accessed and return valid string but
    newly added resources return Nothing. All of the resource are String type. For example:

    Dim xx = My.Resources.NoRisk
    'It returns string "No Risk to access this drive:"
    'But after Reinstalling XP i added 'StartupReg' in resource with this string
    ''SOFTWARE\Microsoft\Windows\CurrentVersion\Run'
    xx = My.Resources.StartupReg
    'Return Nothing where it should Return 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run'

    Anyone have any solution?

    D 1 Reply Last reply
    0
    • S slam Iqbal

      I added some resourses in VS2008 (vb project). I have reinstall OS(XP). The resources that already added that can be accessed and return valid string but
      newly added resources return Nothing. All of the resource are String type. For example:

      Dim xx = My.Resources.NoRisk
      'It returns string "No Risk to access this drive:"
      'But after Reinstalling XP i added 'StartupReg' in resource with this string
      ''SOFTWARE\Microsoft\Windows\CurrentVersion\Run'
      xx = My.Resources.StartupReg
      'Return Nothing where it should Return 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run'

      Anyone have any solution?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Try Cleaning the project then recompiling. You may want to repair Visual Studio and the .NET Framework if that doesn't work.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Try Cleaning the project then recompiling. You may want to repair Visual Studio and the .NET Framework if that doesn't work.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008
        But no longer in 2009...

        S Offline
        S Offline
        slam Iqbal
        wrote on last edited by
        #3

        I've install vs2008 5th july. Clean solution and Rebuild solution i did all. I do manualy clean obj folder. but that problem is not solved. There are 2 project in that solution. 2nd have no problem to retrive value from resource even a new one. Anyother options left what should i do? Thanks :(

        D 1 Reply Last reply
        0
        • S slam Iqbal

          I've install vs2008 5th july. Clean solution and Rebuild solution i did all. I do manualy clean obj folder. but that problem is not solved. There are 2 project in that solution. 2nd have no problem to retrive value from resource even a new one. Anyother options left what should i do? Thanks :(

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          I have no idea. I've never heard of the problem before. I can't even replicate it...

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008
          But no longer in 2009...

          S 1 Reply Last reply
          0
          • D Dave Kreskowiak

            I have no idea. I've never heard of the problem before. I can't even replicate it...

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008
            But no longer in 2009...

            S Offline
            S Offline
            slam Iqbal
            wrote on last edited by
            #5

            This is twice in my life. anyway thanks. I solved that creating a new project and add old forms and classes and all other components. I have no other choice.

            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