Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi all,

I had developed an application in vb where user can draw/create map. here he first import the image of that map and then draw over that image.
I converted that application in vb.net and want to give the same functionality. After converting that application it draws/create map on panel but image is showing on picture box.
So i set panels background image to map image and call RedrawMap() for creating map on panel. But when map are created it hides behind background image i want to show created map over background image.

Any solution for it?
Posted
Comments
Sandeep Mewara 4-May-10 3:36am    
Use the 'Add comment' feature in order to discuss with someone instead of using 'Answer' button. Whatever issue you have, post the comment to that answer and have separate complete conversation.

The picture box is a stupid idea. Write your own code to draw all your elements, and the ones you draw last, will be on top.
 
Share this answer
 
hi chritian,

Thanks for ur rly. what i am doing is i am drawing on panel control and i wrote my own code for that, function name 'RedrawMap" with code panel1.CreateGraphics.Drawline/DrawPolygon etc. I want to give image as background to user so that he/she can draw with the help of background image. But what is happening is when user draw on background image, users image hiding behind background image.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900