Simply put, how do I find a control from its hwnd value? Is the only way to loop each loaded form, then loop the controls on each form until the hwnd value is matched? If so, how much of an overhead would this cause?
You know the layout of SQL with the list of elements down the left and the pane on the right changes depending what you've clicked on? I'm trying to replicate that. Different use but same methods.
Currently I have a pane control to split my form up. On the left pane is a Treeview control as its only ever going to be a treeview control there.
However, the right pane can display various controls, so I have put a PictureBox on it and planned to use SetParent to display the necessary control in that pane. However, i'm having trouble resizing whatever is being displayed in the picturebox, hence the need to find out a control from its hwnd.
If anyone can either help with my current problem or suggest a better method of doing this, it would be much apprecaited.
p.s. I searched first but only found a previous question from me along the same lines. I thought i'd ask again in case anyone had found the answer since march.