Sign in to follow this  

VB Picture box's & click events

This topic is 3297 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

im trying to create a tile map creator to use along side a game that im workin on in c++. and basically what i want it to do is take an image and whenever the user clicks that image is displayed there, and then a number in corespondance with someodd property is stored in a txt file. my problem lies with the picture box's and clicking, im stuck for how to make the image be displayed wherever the user has clicked, can anyone help me with some of their own knowledge, or direct me to a site that has an article similar to what im discussing? thx

Share this post


Link to post
Share on other sites
Assuming we're talking vb.net here, the simplest way I think would be to create a tile of pictureboxes, and handle the click event on each of them. On the handler you could then just set whichever tile is currently selected on the main form to the picture box's image.

Share this post


Link to post
Share on other sites

This topic is 3297 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this