Ok I set up a basic asp .net project created a page etc, and I added a button to the page, and in the button1_click function i added this
and it did't have the effect i was looking for. I was hoping it would let me dynamicly place a button on the webpage...but nope did't work. can anyone help?Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim S As New Button S.Height = Button1.Height() S.Width = Button1.Width() S.Visible = True S.Text = "Test this text" S.Enabled() = True End Sub




Reply With Quote