|
-
Jul 11th, 2007, 10:26 PM
#3
Thread Starter
Member
Re: Assigning an image to a control
I got it to work with CType. I wonder what we be most sound Ctype or Direct Cast. Code is very similiar to what you used. Does CType cause more code to be executed?
With Ctype(MyPanel.Controls(RandomNumber))
.Image= MyImage
.Location = New point(...,...)
End With
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|