1
Answer

Moving a groupBox Location with a vScrollBar

Ask a question
shane weddle

shane weddle

16y
10k
1

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)