devxlogo

Dynamically Create Pictures

Dynamically Create Pictures

Question:
I got a game “SimTower”. In this game you can for exemple click on the picture with the office or hotel room, then you are clicking somewhere on the screen and the copy of the picture apears there. Is there someway I can do something like this invisual basic.

Answer:
You can dynamically create a picture box with the Dim var as New object statement. By combining that with checking where the user put the mouse down on a form (MouseDown event) you can then move the box dynamically.

devx-admin

Share the Post: