I've got a winform with 2 treeviews. my left treeview is being loaded with data from an adserver which is being loaded by clicking on a button. This triggers my backgroundworker which fetches my data and builds up my tree.
Now while doing this I'm disabling the treeview control and showing a picturebox with an animated gif on it. So when my backgroundworker is finished I enable back my treeview and hide my picturebox.
So what I want to do is that the picturebox stays in center of the treeview. both treeviews are on a splitted container. so maybe I need to get the borders of those panels? So when the size of the form changes, my picturebox stays nicely in the center of the treeview.