tryvbc /t:library /r:system.dll /r:system.web.dll yourvbfile.vbImports SystemImports System.WebImports System.Web.UINamespace MycustomControl  Public Class CustomControl1 : Inherits Control
  
   Protected Overrides Sub Render(Output as HtmlTextWriter)    Dim strMessage as String
   
    Output.Write(strMessage & "the time is now " & DateTime.Now.ToString)
    
    End Sub
    
   End Class
    
 End Namespace