Scrollheight of a webContainer?


how can I figure out the height and the scroll-height of a WebContainer?

For example if the content of a webcontainer is larger as itself.

  • Lars

It’ll be the maximum of top+height of all contained controls minus the minimum of the top of all contained controls.

Dim myMin, myMax as Integer
MyMin = self.height
Dim c as integer = Self.ChildCount
For I as integer = 0 to c-1
  Dim ctl = self.ChildAtIndex(i)
  MyMin = min(myMin,
  MyMax = max(MyMax,
Next I

Dim h as integer = MyMax - MyMin