Moving a groupBox Location with a vScrollBar

Jun 26 2008 9:06 PM

Hi,

I have groupBox on my form that i would like to move up or down as i slide on the Scroll bar but i cant find how to set the groupBox location.. I have tride such code as listed below:

//Just set the location
groupBox1.Location = 55,22;

//Set Y of groupBox with value from vScrollBar
groupBox1.Location.Y = vScrollBar1.Value;

Any Ideas?

Thanks
Shane

 


Answers (1)