I've put this small project together with examples I've found on this site (attached). I have two squares (Class called mover) that can be moved left and right. They are contained within a panel. I'm trying to keep the two squares between two red lines in the panel. One problem is that when the panel is scrolled, the bounds I'm trying to setup move with the scroll. The second problem I'm having is that I can't seem to access Panel.HorizontalScroll.Value when using a form that's a childform of an MDIParent.
You can see what I mean by running the app. Clicking the Help icon on ToolStrip will open Form1. Then clicking Button1 on Form1 will populate the boxes.
The project requirements state I need the scrollable panel and that this form must be done in an MDI environment. Hopefully this is easier to do than I'm making it.
Thanks for any help
You can see what I mean by running the app. Clicking the Help icon on ToolStrip will open Form1. Then clicking Button1 on Form1 will populate the boxes.
The project requirements state I need the scrollable panel and that this form must be done in an MDI environment. Hopefully this is easier to do than I'm making it.
Thanks for any help
Attachments
Last edited by a moderator: