Agent67
Honorary Master
So, I'm busy with some Visual Basic work for ICT2611 (UNISA module). But something is happening that's not only grinding my gears but completely imploding my studio...
For some reason, my projects and stuff refuse to compile if I don't keep the name of the .vb file (shown in the red ring in the pic below) strictly as Form1...

It's fine if I rename my form itself and controls on the form, etc, but for some reason, Visual Studio 2022 loses its **** if I rename the .vb file (even tho in the damn prescribed book from Ch. 2 onwards it is always renamed), pic below shows the kind of error I get...
Does anyone know what I can do to stop getting this error?
For some reason, my projects and stuff refuse to compile if I don't keep the name of the .vb file (shown in the red ring in the pic below) strictly as Form1...

It's fine if I rename my form itself and controls on the form, etc, but for some reason, Visual Studio 2022 loses its **** if I rename the .vb file (even tho in the damn prescribed book from Ch. 2 onwards it is always renamed), pic below shows the kind of error I get...
Does anyone know what I can do to stop getting this error?


