I am using VB.Net 2008 (had the same problem in 2005) and have a problem on random computers... it is very wierd. It works fine on most computers, but I have a XP - SP3 machine that the anchored objects refuse to anchor. Everything was assembled using the designer. The controls having the problems are datagridviews anchored to a splitter panel inside of a tab. So the anchoring goes pretty deep. The tab control sits on a user control, which sits on a form inside of an MDI frame. Here is the order to where the control having the problem lives:
form in the frame
user control on the form
horizontal SplitContainer Panel
tab control in the lower SplitContainer Panel
vertical SplitContainer Panel on the tab control
DataGridView sitting in this vertical SplitContainer Panel...this is the one that the anchors do not work on some computers.
All the anchors go crazy and stuff is cut off or gone. It is like the controls don't anchor themselves properly to the splitter panel.
There must be some bug with the Visual Studio Designer causing this. All the controls in this window were put there by the designer. Some things in the panels are set visible/invisible during runtime, but the positions are getting screwed up. This only happens on random machines like 1 out of 10 computers. Why would the anchors do this?
I posted this on :
and got no answer.
If there is something in the designer code that I can rearrange, that is fine, I just need to know how to get around this anomole. It appears to have something to do with controls living on the splitter panels. The bad thing is that I cannot reproduce this on my computer, so it makes it hard to troubleshoot. It only happens on certain computers that are running Windows XP. It works fine on Vista.