Hiding scrollbars?!

Macaco

Freshman
Joined
Jul 5, 2004
Messages
39
Hello, I create a PictureBox called layerBox and I put it into a smaller panel called layerpanel, this is the code for the layerpanel:

layerPanel = new Panel();
layerPanel->BackColor = Color::Chocolate;
layerPanel->Dock = DockStyle::Top;

layerPanel->AutoScroll = true;

layerPanel->set_VScroll(false);
layerPanel->set_HScroll(false);

layerPanel->Controls->Add(layerBox);

As you can see I enable the scrollling in the layerPanel, therefore I want to hide the scroll bars (just to make a test) but they don't hide. why?!?!??

I can see here that It has to be made that way:

http://msdn.microsoft.com/library/d...emwindowsformsscrollablecontrolclasstopic.asp

Help needed, thanks !
 
Back
Top