Sebastian133
New member
- Joined
- Mar 9, 2014
- Messages
- 2
- Programming Experience
- 1-3
VB.NET:
Public Sub NewPic(ByVal LocX As Integer, ByVal LocY As Integer, ByVal Layer As Integer, ByVal LoadPicture As String, ByVal ImgHeight As Integer, ByVal ImgWidth As Integer, ByVal Initvis As Boolean)
BG(Layer).Location = New Drawing.Point(LocX, LocY)
BG(Layer).Image = My.Resources.ResourceManager.GetObject(LoadPicture)
BG(Layer).Height = ImgHeight
BG(Layer).Width = ImgWidth
BG(Layer).Visible = Initvis
BG(Layer).SizeMode = PictureBoxSizeMode.Normal
BG(Layer).BringToFront()
Me.Controls.Add(BG(Layer))
End Sub
I tried to make a dynamic function for creating pictures.. however, the picture is no shown..
Everything like BringToFront() etc doesnt seem to work, help!