Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

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 in visual 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 Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date