calender control option show/open ?

Discussion in 'Questions (Windows Mobile)' started by mike2ppc, Aug 20, 2008.

  1. mike2ppc

    mike2ppc Member Licensed User

    Hallo to All,

    does anyone know if it is possible to open the calender control
    by any option like show or open ?

    I want to realize by click on a textbox or a button to open the
    calender view.

  2. Erel

    Erel Administrator Staff Member Licensed User

    You can send the 'click' message to the control with Hardware.SendMessageToControl:
    Pressing Button1 will show the calendar or hide it if it is already opened.
    Sub Globals
    'Declare the global variables here.

    End Sub

    Sub App_Start
    'Hardware object
    End Sub

    Sub Button1_Click
    "Calendar1",513,0,0'Change Calendar1 to your calendar name.
        hardware.SendMessageToControl("Calendar1",514,0,0'Change Calendar1 to your calendar name.
    End Sub
  3. mike2ppc

    mike2ppc Member Licensed User


    thanks, first step of showing calendar control works fine, but the event never
    work for example

    sub calendar1_ValueChanged
    end sub

    do I have to work in this case also with hardware libary ?

    From where I can get a list of all possible parameters for the calendar control working with sendmessagetocontrol ?

    Last edited: Aug 20, 2008
  4. Erel

    Erel Administrator Staff Member Licensed User

    I'm not sure I understand the problem.
    This event will be raised when the user changes the date value.
  5. mike2ppc

    mike2ppc Member Licensed User

    Hi Erel,

    attached you find a small example maybe helps for better
    understanding of my problem.

    In this example the control calendar1 is visible=false, when you click on the button1 control beside the
    TextBox1 Control the Calender1 control opens and now I want to change the date and the result
    should be display in the TextBox1 control. But no reaction after clicking in the calender control
    on a different date to today the calender1 control only close but not move throu the event value_changes.

    Did I something wrong ?



    Attached Files:

    Last edited: Aug 21, 2008
  6. Erel

    Erel Administrator Staff Member Licensed User

    You are missing the second message:
    Sub Button1_Click
    "Calendar1",514,0,0'was missing
    End Sub
    513 is the value of MouseDown and 514 is the value of MouseUp.
    Both are required in order to properly show the calendar.
  7. mike2ppc

    mike2ppc Member Licensed User

    Hi Erel,

    now I'm developing on Vista and I got the error message
    by using


    Do you know about this problem and maybe have a solution for me ?

    Best Regards

  8. Erel

    Erel Administrator Staff Member Licensed User

    Does it happen with the compiled executable?
    I don't see any exception on my Vista computer, but our security settings may be different.
    You can try to right click on the executable and choose Run As Administrator.
  9. mike2ppc

    mike2ppc Member Licensed User

    it happens in the basic4ppc developing UI desktop and when I start the compiled executeable file then I got message shown in attached printscreen
    DE = Fehler bei der Anforderung des Berechtigungstyps
    EN = Error by request the authority types
    When I do right click on executable file and execute as admin it popup with same error message !

    Attached Files:

  10. mike2ppc

    mike2ppc Member Licensed User

    Problem solved, it was a authority situation, source folder
    located on a seperate drive on physical maschine and I have tied to work with a mapped root from virtual maschine running on physical maschine where source folder. Now I have copied complete source folder directly on the virtual maschine and all works fine.
  11. Erel

    Erel Administrator Staff Member Licensed User

    Thank you for updating us :)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice