What did I do wrong?

Z

Zim Babwe

I want to generate a label in code (VS 2005 VB.NET Windows Forms)

Dim lbltest As New System.Windows.Forms.Label


With lbltest
.Left = 17
.Top = 200
.AutoSize = True
.ForeColor = Color.Black
.BackColor = Color.White
.Text = "DJFJSDLFKJDJFLKS"
.Visible = True
End With





but it doesn't show on the form. What did I do wrong?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top