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.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist