I have a container i want to embed dynamically and then once opened, keep centered on the web page.
This code on a button opens/embeds the container and centers it:
Dim c As New ContainerLogin Dim posLeft As Integer posLeft = Self.width/2 - c.Width/2 c.EmbedWithin(Self, posLeft, 200, c.Width, c.Height) masterContainerLogin = c
And if I manually close the embed by :
If masterContainerLogin <> Nil Then masterContainerLogin.Close End If
And then i resize the window and click the first button again it properly centers again.
Obviously this is not the way to do it. I need to get a pointer to the open/embedded container and use the resized event. Anyway, I'm stuck.