The message I am getting is "System.SR is not accessible in this context because it is a 'Friend'.
I have attached a screen shot of the code with the error at the bottom.
This is for a game. There are three text lists which will be read (only one at a time) depending on the setting of radio buttons on a form which is not the main form and not the startup form. In the code on lines 62 and 64, the sr part is causing the error.
I found a description of the problem and tried the workaround from a Microsoft page, but it didn't work. It said to change the Modifiers for the controls (radio buttons) to Public or Protected. I changed them all to Public (Protected didn't work - it was protected, duh!) and I also changed the group box in which they are located just in case.
If I comment out lines 44 and 46, getting rid of the If...Then statement, everything works fine.
I can move the radio buttons to the main form, but I don't want to. I want to have the other form for signing in and selecting various parameters of the game.
Any help is appreciated.
![Name: Screen Shot 2013-12-07 at 12.18.45 AM.png
Views: 91
Size: 50.5 KB]()
I have attached a screen shot of the code with the error at the bottom.
This is for a game. There are three text lists which will be read (only one at a time) depending on the setting of radio buttons on a form which is not the main form and not the startup form. In the code on lines 62 and 64, the sr part is causing the error.
I found a description of the problem and tried the workaround from a Microsoft page, but it didn't work. It said to change the Modifiers for the controls (radio buttons) to Public or Protected. I changed them all to Public (Protected didn't work - it was protected, duh!) and I also changed the group box in which they are located just in case.
If I comment out lines 44 and 46, getting rid of the If...Then statement, everything works fine.
I can move the radio buttons to the main form, but I don't want to. I want to have the other form for signing in and selecting various parameters of the game.
Any help is appreciated.