axy
05-15-2006, 08:30 AM
hi this is my first message :D and i have somo doubts about control panel.
1. I try to control the scroll of the panel with the wheel of the mouse but i don't know how to do that some one can help???? :(
2. Now i have an aplication that add picture box to a panel dinamic, but when i add a picturebox when the scroll is at the top everithing is ok, but when the user scroll the panel and add a new picturebox, the new picture box is added but not in the position that i want, for example:
i add 10 picture box, the position is something lake this:
pic1.location(10,10)
pic2.location(10,110)
pic3.location(10,210)
pic4.location(10,310)
pic5.location(10,410)
when i add other picture box the next position is (10, 510), but when the panel is scrolled the 510 pixels are counted from the top of the panel scrolled but not at the top of the panel position. Someone knows haw can i solve this problem???? :confused:
Greetings
1. I try to control the scroll of the panel with the wheel of the mouse but i don't know how to do that some one can help???? :(
2. Now i have an aplication that add picture box to a panel dinamic, but when i add a picturebox when the scroll is at the top everithing is ok, but when the user scroll the panel and add a new picturebox, the new picture box is added but not in the position that i want, for example:
i add 10 picture box, the position is something lake this:
pic1.location(10,10)
pic2.location(10,110)
pic3.location(10,210)
pic4.location(10,310)
pic5.location(10,410)
when i add other picture box the next position is (10, 510), but when the panel is scrolled the 510 pixels are counted from the top of the panel scrolled but not at the top of the panel position. Someone knows haw can i solve this problem???? :confused:
Greetings