You can fix the problem manually by editing your csproj file.
Open it in notepad and search for the filename of the class. You should see something like this...
<Compile Include="frmTest.cs" />
Add a subtype called 'Form' like this...
Reload the project. Visual Studio should now identify the file correctly.