locked
windows mobile application RRS feed

  • Question

  • Hi,

    can anyone help me to know that "How to set an image as a mobile background but not only a single form" like theme.

    Thanks in advance

    pura

    Friday, April 16, 2010 8:30 AM

Answers

  • Hi Pura,

     

    See below thread for the same which is already discussed here.

    Thread-1


    Hope this may be help.


    If you find my post is helpful for you then mark as a answer.
    Friday, April 16, 2010 12:51 PM
  • Hi pura,

    Please check following aspects:

    1. Make sure "@"\ProgramFiles\SmartDeviceProject3\Grace.bmp" is correct, I think it should be "Program File", it should add a blank.

    2. Please make sure the image has been deployed to device, set the image "copy always", it will be copied to the device.

    At last, if the path is correct, it should work. Please also check return value "ret", if it is true, it works.

     

    Best regards,
    Guang-Ming Bian - MSFT


    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Tuesday, April 20, 2010 10:03 AM

All replies

  • Are you talking about wall paper ?

    If you find my post is helpful for you then mark as a answer.
    Friday, April 16, 2010 9:42 AM
  • yes WmDev.

    help me to do this, am really thankful to you.

    thanks and regards,

    pura

    Friday, April 16, 2010 10:24 AM
  • Hi Pura,

     

    See below thread for the same which is already discussed here.

    Thread-1


    Hope this may be help.


    If you find my post is helpful for you then mark as a answer.
    Friday, April 16, 2010 12:51 PM
  • Hi WmDev.

    I followed the thread which you was given in your post. and the following code i added in my application which i ws got from there.

    private void Form1_Paint(object sender, PaintEventArgs e) {{

    string imagePath = @"\ProgramFiles\SmartDeviceProject3\Grace.bmp";

    uint alpha = 10;

    bool ret = SHSetAsWatermark(IntPtr.Zero, imagePath, 2, ref alpha);

    }

    [DllImport("aygshell.dll", EntryPoint = "#169")]

    private static extern bool SHSetAsWatermark(IntPtr hWnd, string lpszFile, int iWhich, ref uint pdwAlpha);

     but it not help me fully,

     

     

    please can you help little bit more...

    Thanks and Regards,

    pura

     
    Saturday, April 17, 2010 9:29 AM
  • Hi pura,

    Please check following aspects:

    1. Make sure "@"\ProgramFiles\SmartDeviceProject3\Grace.bmp" is correct, I think it should be "Program File", it should add a blank.

    2. Please make sure the image has been deployed to device, set the image "copy always", it will be copied to the device.

    At last, if the path is correct, it should work. Please also check return value "ret", if it is true, it works.

     

    Best regards,
    Guang-Ming Bian - MSFT


    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Tuesday, April 20, 2010 10:03 AM