Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27210

VS 2012 I am getting an ERROR message because of a control on another form.

$
0
0
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
Attached Images
 

Viewing all articles
Browse latest Browse all 27210

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>