Problem accessing Resourses and Settings in visual studio 2008
-
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 returnNothing
. All of the resource areString
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?
-
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 returnNothing
. All of the resource areString
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?
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... -
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...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 :(
-
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 :(
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... -
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...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.