[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


how to save changes made in picture box

Posted on 2004-10-21
Medium Priority
Last Modified: 2010-04-17
i am using picture box tool(visualbasic-6) for displaying images on a form and  i want to know how can i save the changes that  made for the image in the picture box in runtime .I am able to save the picture but i an not getting the changes made on the image in my saved file. I am using Visual basic6.

suppose if we took a man image with out nose i am lodint the image on to the picture box. when i run the file then i am adding the nose to the picture and saving it.but in my saved file i am not getting his nose but getting the old file with out nose only. i want his nose to be also save in the new file but i am not ablt to do. so how can i do that
Question by:asatish11
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

david_barker earned 200 total points
ID: 12368664
A bit tricky, but here it goes :

Private Sub Command1_Click()
   Picture1.AutoRedraw = True                 ' this is the important line !!!!
   Picture1 = LoadPicture("the initial one.bmp")
   Picture1.Circle (100, 100), 200, vbRed    ' draw a circle, not a nose !
   Picture1.Picture = Picture1.Image
   SavePicture Picture1, "the new one.bmp"
End Sub

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Simple Linear Regression
Six Sigma Control Plans

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question