Hello,
I am having my program let the user click on a picturebox in the form and it will create a Label that says hey!
The only problem I am having is what happens when I click and create the label the label goes to the top left corner of the Pic box.
How can I have it place the Label where the mouse clicks on the Picture box?
VB Code:
Static LabelNumber As Long LabelNumber = LabelNumber + 1 Set m_myLabel = Me.Controls.Add("VB.Label", "Label" & CStr(LabelNumber), Picture1) m_myLabel.Visible = True m_myLabel.Caption = "HEY!"
Thank you and have a great day!
Stilekid007![]()




Reply With Quote