after used showtodayscreen how to show again

Discussion in 'Questions (Windows Mobile)' started by blackiice, Oct 24, 2007.

  1. blackiice

    blackiice Member

    After used showtodayscreen founction , I used NotifyIcon.dll(A good dll)added an icon to the tray , but the questions is how can I show the form again, and form1.refresh doesn't work.

    use msgbox("") can show the form again,but it is not a good idea.
    can somebody help me?

    (form1.text="",so can not be seen in memorymanger)
    Last edited: Oct 24, 2007
  2. Erel

    Erel Administrator Staff Member Licensed User

    Setting form1.Show should show it again.
  3. dzt

    dzt Active Member Licensed User

    A bit complex.

    You should use latest version of dzHW.dll (

    1. Add a global variable
    Dim hWnd
    2. Somewhere in your code before hiding the form add
    hWnd = dzhw.GetActiveWindowHandle
    3. Add in your icon click event sub
    dzHw.BringWindowToFrontC(dzHW.GetClassName(hWnd, 100))

    Your form should be visible again
  4. blackiice

    blackiice Member

    Setting form1.Show works ok.