none
Excel VSTO Addin with Loading img RRS feed

  • Question

  • I have created one excel addin, when user click on connect button it will show loading image(GIF) which is inside the form.

    calling that form in new thread , what is happening is when I move the excel form is still showing on desktop.

    will it be possible to stick form with loading img to excel?

    IntPtrhwndEx

    IntPtrhwndExcel = newIntPtr(Globals.ThisAddIn.Application.Hwnd);

               

    NativeWindowparent = newNativeWindow();

                parent.AssignHandle(hwndExcel);

                t1 =

    newThread(SplashScreenProc1);

                t1.Start();

    cel = new IntPtr(Globals.ThisAddIn.Application.Hwnd);

               

    NativeWindowparent = newNativeWindow();

                parent.AssignHandle(hwndExcel);

                t1 =

    newThread(SplashScreenProc1);

                t1.Start();

    private

    voidSplashScreenProc1(objectparam)

            {

               

    try


                {

                   

    IWin32Windowparent = default(IWin32Window);

                    parent = (

    IWin32Window)param;

                    m_splashScreen1.ShowDialog(parent);

                }

               

    catch(Exceptionex)

                {

                   

    // DO Nothing


                }

            }

    Thursday, November 5, 2015 2:21 PM

Answers