how can i write a program for getting click event of programs icons? RRS feed

  • Question

  • We've a icon in programs menu of windows mobile PRO. We need to do programming on it's click event. Can someone direct us on how to do that?

    Tuesday, February 2, 2010 5:29 AM


All replies

  • Hi there ,

    Please check out this :


    I think above ref. is only application specific.

    If  anyone have other ideas that would be helpful for To Get&Share knowledge.

    Thanks, Mohsin Shaikh. If you find my post is helpful for you then mark it as answer.
    Tuesday, February 2, 2010 5:42 AM
  • Hi,

    I dont think there is specific event when you click on Programs menu icon.  When you click on that icon(short cut), application gets loaded and you get all parent form events, so that you can implement your code in parent form events.

    Try to explain your requirement, so that we can suggest a way for that.

    Tuesday, February 2, 2010 6:01 AM
  • You are not quite clear about why you need to trap that event. Anyway it seems that the following thread can help:
    If you have further questions please do elaborate on the description.

    Please mark the post that helps you, and unmark that does not. This benefits our community.
    Thursday, February 4, 2010 6:12 AM
  • Actually default behavior for win mobile STD is single instance, and ideally it should be same for PRO also. But unfortunately we're getting another instance of application on ICON click, even though another instance is running in background. Our product basically comprises 2 components:

    1. Bluetooth search - Non GUI
    2. Launch a form in full screen mode and block all call functionalities - GUI - runs on another thread.

    So even though first instance bluetooth search is running in background, when i click on application ICON in program files, it launches GUI of application and it is another instance, as we're able to see it from log file.

    So we basically need to write a check for already existing instance, but don't know where to write it? As another bluetooth search does not start but second component which is another thread start on icon click.

    Any replies in this context will be really helpful. Thanks in advance...Please seel free to write me at my perosnal ID shilpig@cybage.com, if any other details required.

    Friday, February 5, 2010 9:39 AM
  • another important aspect of this product is: GUI is visible only if bluetooth is present in vicinity. Otherwise we simply hide GUI part.
    Friday, February 5, 2010 9:41 AM
  • Based on my understandings you need to create a single instance application. If you use C++, you can create a named mutex with the CreateMutex function as shown in the following thread:

    If you use C#, please watch the following video:

    Please mark the post that helps you, and unmark that does not. This benefits our community.
    • Marked as answer by warrentang Monday, February 8, 2010 5:34 AM
    Monday, February 8, 2010 5:20 AM