Scroll Bar displayed in wrong location

Jul 28, 2011 at 1:40 PM

I have a vertical scroll bar which works fine when I set WindowState to System.Windows.Forms.FormWindowState.Normal.

 

However, when I change this to Maximized, it doesn't display properly. The VScrollbar is set to:


this.vScrollBar.Dock = System.Windows.Forms.DockStyle.Right;

I tried to upload the screenshot, but I cannot figure out how to do that.

 

Anyone has got similar issue like me?

Jul 28, 2011 at 2:13 PM

I fixed various docking issues with the ribbon by setting the Viewable property of the ribbon to false, and then immediately setting it to true again in the Load event of the form,.

Jul 28, 2011 at 2:23 PM

Thanks man, that solved my issue.

Thanks for the quick reply.