Hi,

I have a strange problem. I have in this case 6 pictureboxes inside a scrolling panel. I have these picture boxes showing and hiding based on events happening elsewhere in the panel. However, if I scroll the panel to another position down, and set the picturebox.visible property, they appear where they would if I was scrolled all the way to the top (rather than just becoming visible where I tell them to). Only two of my 6 pictureboxes do this. I thought perhaps that they were somehow not contained in the panels control collection, but two things verified this was not the case. First, I set a button to cycle through the panel's ControlCollection and change each pictureboxes image property to a solid blue bitmap, and they changed as well. Second, when I Scroll the panel after they have "jumped" they scroll with it, in the incorrect place.

Nowhere in my form is the location property of these pictureboxes set, and it bugs me that only 2 of the 6 (which I created all at the same time) do this.

Also, it seems to happen during a period where my program is "Thinking", and setting a large number of variables. It does not happen every time, but most of the time. Only the Y position is affected.

Any suggestions?

Bill