[RESOLVED] .Net Compact Framework 1.1 question
Hi, I'm developing a PocketPC application in the .Net Compact Framework. I am using 3 forms throughout my app. When I try to declare a new instance of my form and then show it, I get errors.
When I do this:
Dim F3 As New Form3
I get "Type Form3 is not defined"
It's in the project as I can see it over in the Solution Explorer. Now I know this is the way to show forms in .Net 1.1, but for some reason is the Compact Framework different?
Re: .Net Compact Framework 1.1 question
Hi,
Form3 musn't exist in the project then. Intellisense should help you.
When you do
Dim f3 as new Fo...
it should give you a list of forms in your project.
If I do
Dim f3 as new form3
in my project, which doesn't contain form3, 'type form3 is not defined' is the error I get
Pete
Re: .Net Compact Framework 1.1 question
Yes, I know that it does that if the form doesn't exist in the project. I know you're only trying to help but I already clearly stated that it DOES exist in my project, I can see it in Solution Explorer. I am certain it exists...It must be something else.
Re: .Net Compact Framework 1.1 question
make sure that form3 build action is set to compile
does it show up in the intellisense
Re: .Net Compact Framework 1.1 question
Hi,
and just because you clearly stated it, doesn't make it so. I am trying to explain where the error comes from.
As Strider says, does it show up in intellisense?
Re: .Net Compact Framework 1.1 question
Nevermind, I'm retarded. I had named them differently when creating them and forgot. Dim frmInventory as New frmInventory instead. Duh, sorry for my stupidity once again and thanks for your help.