devxlogo

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.

Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.

See also  How Seasoned Architects Evaluate New Tech

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.