|
-
Mar 26th, 2007, 10:45 AM
#1
Thread Starter
Addicted Member
[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?
-
Mar 26th, 2007, 01:00 PM
#2
Frenzied Member
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
-
Mar 28th, 2007, 10:54 AM
#3
Thread Starter
Addicted Member
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.
-
Mar 28th, 2007, 11:41 AM
#4
Fanatic Member
Re: .Net Compact Framework 1.1 question
make sure that form3 build action is set to compile
does it show up in the intellisense
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
-
Mar 28th, 2007, 12:56 PM
#5
Frenzied Member
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?
-
Apr 2nd, 2007, 09:15 AM
#6
Thread Starter
Addicted Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|