Is there a code that you can use to create an object(s)? Ie Picture box and other ones already in


Private tb as Textbox

Public Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

tb = New TextBox
tb.Parent = sender.Parent

End Sub

Loren Soth

Ok to clarify what it is that I need. I need a code that allows me to create a new object perferably a picturebox when I click on the form that i can drag choose colour and resize. Any part of this code will help greatly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.