I have been writing an activex control to be used in IE. The design of the control is such that it needs to be a specific minimum size to display properly, otherwise the background graphics and set-sized controls won't appear correctly, or will overlap.

In the resize method, I have the following lines:

VB Code:
  1. With UserControl
  2.   If Height < MIN_HEIGHT Then Height = MIN_HEIGHT
  3.   If Width < MIN_WIDTH Then Width = MIN_WIDTH
  4. End With

This works inside the IDE, but if I wanted to put this into a webpage so that the control will fill the available space on the page (page is laid out in table cells with a menu to the left and the remaining space for content - basically width="100%"), how would I go about it?

I have tried setting WIDTH="100%" and HEIGHT="100%" in the <OBJECT> tag in the HTML, and this will fill the space available, but when the space available becomes smaller than the minimum values set (i.e. user shrinks the IE window), the activex doesn't resize to the minimum and give scroll bars, but just resizes to the 100% set in the HTML.

Is there a way to set in the HTML that the object has a minimum size, or a way to get the activex to tell the container (IE) to scroll around it?