ravinukala
Posts: 103
Joined: 2012-10-05
|
Hi,
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.
Regards |
|
Sergey Grischenko
Add-in Express team
Posts: 7233
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
}
}
|
|