Browser resize hangs IE window.

Add-in Express™ Support Service
That's what is more important than anything else

Browser resize hangs IE window.

Posts: 103
Joined: 2012-10-05

I have developed explorer bar. I have some control on my explorer bar. I am changing size, location of the control's on IE re size event. It was working fine.

When I used images on my controls, multiple IE re size giving problem. It hangs IE window and needs to be restart IE.

Please help.

Posted 26 Dec, 2012 04:14:30 Top
Sergey Grischenko

Add-in Express team

Posts: 7202
Joined: 2004-07-05
Hi Ravi,

Please try to use OnSendMessage event to change the location of controls. You just need to send a message using the SendMessage method of the bar in the resize event. Then you can process the message in the OnSendMessage event handler and change the location of controls.

        private const int WM_USER = 0x0400;
        private const int WM_MYMESSAGE = WM_USER + 1000;

        private void MyIEBar1_Resize(object sender, EventArgs e)
            SendMessage(WM_MYMESSAGE, IntPtr.Zero, IntPtr.Zero);

        private void MyIEBar1_OnSendMessage(ADXIESendMessageEventArgs e)
            if (e.Message == WM_MYMESSAGE)
                // resize controls
Posted 26 Dec, 2012 05:56:20 Top