954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Creating Objects

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

grimshaw9
Newbie Poster
5 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

Hi,

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

Lord Soth
Posting Whiz in Training
233 posts since Mar 2006
Reputation Points: 28
Solved Threads: 4
 

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.

grimshaw9
Newbie Poster
5 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You