Results 1 to 9 of 9

Thread: Label1.Click event does not work???

  1. #1

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Resolved Label1.Click event does not work???

    Hi there

    I am new in programming on my pocket PC.....i have a label but i cannot seem to get it to trigger any event?

    Any ideas anyone?
    Last edited by dinosaur_uk; Mar 14th, 2005 at 06:16 AM.

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

    Re: Label1.Click event does not work???

    what errors are you gettings.

    What code have you placed inside the label1_Click Event
    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

  3. #3

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: Label1.Click event does not work???

    it just does not work..!

    i have just put a msgbox event and it does not work!?!?

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

    Re: Label1.Click event does not work???

    apologies click event is actually not available in cf.net

    have a look here http://www.intelliprog.com/articles/index.html
    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
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104

    Re: Label1.Click event does not work???

    This is one of the great joys of the .NET CF. Some of the events available in .NET do not appear in the CF, but others appear, and can be used, but do NOTHING!!! This is fairly infuriating the first time you encounter them. My particular favorite was the backcolor property for buttons (backcolor is supported for some things).

    Get slapped with that a few times, and you will learn to check for the 'Supported by .NET Compact Framework' line in the documentation.
    My usual boring signature: Nothing

  6. #6
    Lively Member
    Join Date
    Jan 2007
    Location
    Austin, TX
    Posts
    120

    Re: Label1.Click event does not work???

    I beleive you can just use the 'link' control instead of label... you may even be able to have it not be underlined and thus look just like a label. I haven't tried it but it seems like it should work.

  7. #7
    New Member
    Join Date
    Dec 2006
    Location
    Brisbane
    Posts
    8

    Re: Label1.Click event does not work???

    The Pocket PC, does it run Windows XP ?
    One could write in VB6 or Net and install it?

  8. #8
    New Member
    Join Date
    Dec 2006
    Posts
    4

    Re: Label1.Click event does not work???

    Hi acourt,

    Microsoft produces Windows Mobile 5 which is an operating system designed for Pocket PCs or PDAs. http://en.wikipedia.org/wiki/Pocket_PC. You can also get Windows CE, and other non-Microsoft operating systems for mobile devices, but XP's too big and bulky to run on a Pocket PC.

    The .Net framework is available in a cut down version, called the Compact Framework (CF) for Windows Mobile 5, and this is probably what you're looking for if you want to code VB.Net for a PDA.

    I did a quick search, and it looks like some people have done the work in making old VB apps work on WM5 e.g. http://www.pocketpcfreeware.com/en/index.php?soft=1075, but I haven't ever tried this.

    Hope that helps

  9. #9
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104

    Re: Label1.Click event does not work???

    Don't bother even trying to run a desktop system on a PDA. The screen issues would be so great that you almost certainly have to rethink your interface completely. However, if you are writing in .NET, and keep to the features that are included in the Compact Framework, then porting the application over to a PDA would be VERY simple. I think that you would still have to create a new project, since the project type is different, and there are a few different debugging and packaging options with a mobile app, but if you created the project on a desktop system, then you could create a mobile project, and just import everything from the desktop project.

    Of course, this will only work in those relatively rare cases where a desktop project works in a PDA size format. Basically, this means that only programs with tiny or no interfaces are the only ones that convert directly.
    My usual boring signature: Nothing

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