Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Panel containing controls moving during runtime on its own

$
0
0
I have a form with a split container, split vertically. In the right container I two panels one above the other. In the lower panel I have several controls including a datagridview. The issue I'm having is that each time the datagrid receives focus then the entire panel moves to the right slightly, to the point that after this has happened a few dozen times the upper panel and the lower panel are offset by several inches on the screen which makes it hard on the user. I have no code that explicitly moves that panel and I know its the panel that moves because all of the controls within it stay true to their relative positions. The only other clue I have is that when the form is on a screen that can show the entire panel and the autoscroll bars do not appear then this issue doesn't happen but if a portion of the datagridview is off screen the panel begins to creep right. Any ideas why this is happening. I'm trying to be as specific as I can with this problem and I'd post code but I have no code that moves the panel at all. Any ideas welcomed. 

Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>