I downloaded some code from my friend (we work together on it), when I run the code several times, it works fine, without errors, and then when I go to run it, I keep getting these 2 errors:
Error 1 Partial "GuiGame.HareAndTortoiseForm" declarations have conflicting accessibility modifiers
public partial class HareAndTortoiseForm : Form {
Error 2 There is no partial modifier when declaring type 'GuiGame.HareAndTortoiseForm'; there is another partial declaration of this type
internal class HareAndTortoiseForm {
I think the code was generated automatically when I created the GUI form. I tried changing the accessory to be public, but still no luck. I tried to reload the file about 10 times and you had a problem, I canβt find out where it came from or how to fix it. Somebody knows? The top line of code is for the HareAndTortoiseForm.cs class, and the other is for the HareAndTortoiseForm1.Designer.cs class.
source share