Results 1 to 6 of 6

Thread: [RESOLVED] .Net Compact Framework 1.1 question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    169

    Resolved [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?

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    169

    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.

  4. #4
    Fanatic Member Strider's Avatar
    Join Date
    Sep 2004
    Location
    Dublin, Ireland
    Posts
    612

    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

  5. #5
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    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?
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    169

    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
  •  



Click Here to Expand Forum to Full Width