Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic When DiagramNode is selected, the vertical scroll bar of UserControl moves (Read 233 times)
koichi_satoh
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 7
Joined: Nov 30th, 2023
When DiagramNode is selected, the vertical scroll bar of UserControl moves
Mar 4th, 2024 at 11:08am
Print Post  
Two UserControls are stacked to display a vertical scroll bar.
I have a DiagramView placed in the inner UserControl, but when I select a DiagramNode in the DiagramView, a problem occurs where the vertical scroll bar moves automatically.
Is there a lack of focus control?
If anyone has had the same problem and resolved the issue, I would like to get some advice.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3171
Joined: Oct 19th, 2005
Re: When DiagramNode is selected, the vertical scroll bar of UserControl moves
Reply #1 - Mar 4th, 2024 at 11:43am
Print Post  
DiagramView focuses itself when clicked, and outer scrollable panels might decide to scroll to show newly focused inner control. Check if answers here help -

https://stackoverflow.com/questions/419774/how-can-you-stop-a-winforms-panel-fro...

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
koichi_satoh
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 7
Joined: Nov 30th, 2023
Re: When DiagramNode is selected, the vertical scroll bar of UserControl moves
Reply #2 - Mar 8th, 2024 at 6:03am
Print Post  
Thanks to you I solved it.
thank you very much.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint