Need to inherit the control from WebControl
And write this in the render method:
Dim thewidth as string = me.width.tostringdim theHeight as string = me.height.tostring
Output.addattribute (HTMLTextWriterattribute.Height, Theheight) Output.addattribute (HtmlTextWriterattribute.Width, Thewidth)