I created a single form called 'StartForm' and a Dialog form called 'CountDown'. After debuging it - I added a deployment project. At my first build - I get a compile error with my original program. I deleted the deployment project, but I still get the same error. Recreating on a new project and copying my code from the old file reproduces the error.
In my project properties - The only start form I can select is "CountDown'. 'StartForm' is no longer recognised is a form. The compile error is -
Error 1 'StartForm' is a type in 'SchoolBells' and cannot be used as an expression. C:\Documents and Settings\Dean\My Documents\Visual Studio 2005\Projects\School Bell\School Bell\My Project\Application.Designer.vb 35 27
The error in Application.Designer.vb is -
Me
.MainForm = Global.SchoolBells.StartFormshowing the Global.SchoolBells.StartForm as the error.
Searching the current project only shows startform as one of my class and the form name. What really gets me is that is StartForm.vb is there in my solution explorer, but is not accessible as a form. How did the type get changed
Anybody with any ideas as to what is wrong

Wierd build error
rtaiss
This shows the typical quality of Microsoft products on new releases - very buggy and unreliable. They had not got it right on the first release since DOS 5.0.
To prove it was not my code. I copied it letter for letter into VB2003 and it works just fine.
If this sounds like I'm frustrated - you guessed right!
Dean
Shaantu
Yes, it's there and everything looks normal in it.
I am at a loss.
Dean
J_Dude2003
You should change:
Me.MainForm = Global.SchoolBells.StartForm
to be:
Me.MainForm = New Global.SchoolBells.StartForm
Hope this helps,
Prashweenet