Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic loading flowchart.net.dll from the Internet zone (Read 2387 times)
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3233
Joined: Oct 19th, 2005
loading flowchart.net.dll from the Internet zone
Dec 20th, 2005 at 8:35am
Print Post  
We've found out that loading a page embedding Flowchart.NET from the Internet zone fails with the default Intenet permission set. That happens because of the recently added HandleArrowKeys property, whose implementation required overriding "Control.IsInputKey". Handling IsInputKey is probably considered a security risk because it can be used to steal the keyboard focus. As a consequence, HandleArrowKeys will be removed from version 4.0.2 of the control. If anyone needs to handle the arrow keys, use this method:

1) create a new class that inherits FlowChart.
2) override the IsInputKey like this:

Code
Select All
protected override bool IsInputKey(Keys keyData)
{
  switch (keyData)
  {
    case Keys.Up:
    case Keys.Down:
    case Keys.Left:
    case Keys.Right:
	return true;
    default:
	return base.IsInputKey(keyData);
  }
}
 

  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3233
Joined: Oct 19th, 2005
Re: loading flowchart.net.dll from the Internet zo
Reply #1 - Dec 20th, 2005 at 8:40am
Print Post  
Until we release version 4.0.2, the control can be loaded in the Internet zone only by changing the Internet zone permission set so it contains unrestricted permissions for "User Interface".
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint