Blinking a Symbol in background

Discussion created by pavsanto on Apr 2, 2013
Latest reply on Apr 4, 2013 by scjpike

I am currently trying to blink a symbol which is displayed as a graphic element using PictureMarkerSymbol. I have Used FlashShape() funtion to blink the symbol, I am able to blink the symbol but as long as the symbol blinks I cannot do any other operation on the mapcontrol. Please let me know how can make the PictureMarkerSymbol blink constantly as a background process so that it doesnt hinder other operations. Also I am able to blink the symbol for specific number of times only as an argument in FlashShape function. Please let me know how can I blink the symbol continuously without stopping. The code is below:
// *********************
            IPoint pt = new PointClass();
            pt.X = 58.5;
            pt.Y = 27.5;

            //Plot Marker Symbol      
            IMarkerElement pMrkElement = new MarkerElementClass();

            System.Drawing.Bitmap dotNetBmp = new System.Drawing.Bitmap(@"D:\Symbols\Sample.bmp");
            ESRI.ArcGIS.Display.IPictureMarkerSymbol bmpSym = new ESRI.ArcGIS.Display.PictureMarkerSymbolClass() as ESRI.ArcGIS.Display.IPictureMarkerSymbol;
            bmpSym.Picture = ESRI.ArcGIS.ADF.COMSupport.OLE.GetIPictureDispFromBitmap(dotNetBmp) as stdole.IPictureDisp;
            bmpSym.BitmapTransparencyColor = GetRGBColor(255, 255, 255);
            bmpSym.Size = 18;
            IMarkerSymbol markerSymbol = bmpSym as IMarkerSymbol;
            pMrkElement.Symbol = markerSymbol;
// Blink the Symbol.
            axMapControl1.FlashShape(pt, 30, 100, bmpSym);

Thanks in Advance/ Gracias,