ok works, just wondering if it's akward programming to do this

VB Code:
  1. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  2.         ' Force another btnPreview_click
  3.         If pnlPreview.Visible Then btnPreview_Click(Nothing, Nothing)
  4.     End Sub
  5.  
  6.     Private Sub btnPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPreview.Click
  7.         pnlPreview.Visible = True
  8.  
  9.         ' Generate controls in the panel
  10.         ' ....
  11.     End Sub