I have a UserControl and I want to make custom scrolling. Can I use the already built in Horizontal and Vertical ScrollBars without setting the AutoScroll flag to true? I can Enable and define min and max value for both ScrollBars and I can see them on my control, but when clicking the buttons they don't move and in the scroll events I don't get any useful value.
HorizontalScroll.Value = 0;
VerticalScroll.Value = 0;
HorizontalScroll.Minimum = 0;
HorizontalScroll.Maximum = 900;
VerticalScroll.Minimum = 0;
VerticalScroll.Maximum = 600;
HorizontalScroll.Visible = true;
VerticalScroll.Visible = true;
HorizontalScroll.SmallChange = 2;
HorizontalScroll.LargeChange = 4;
HorizontalScroll.Enabled = true;
VerticalScroll.Enabled = true;
this.Scroll += new ScrollEventHandler(PanelsHolder_Scroll);
in the Scroll Event I can't get any changes. Any way to use the built-in without I have to add the scrolls controls manually?