PDA

Click to See Complete Forum and Search --> : [RESOLVED] .Net Compact Framework 1.1 question


wileyj
Mar 26th, 2007, 10:45 AM
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?

petevick
Mar 26th, 2007, 01:00 PM
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

wileyj
Mar 28th, 2007, 10:54 AM
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.

Strider
Mar 28th, 2007, 11:41 AM
make sure that form3 build action is set to compile

does it show up in the intellisense

petevick
Mar 28th, 2007, 12:56 PM
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?

wileyj
Apr 2nd, 2007, 09:15 AM
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.