Jump to content

Recommended Posts

Posted
  Dim sfd As New OpenFileDialog

        sfd.Filter = "imagens(*.jpg;*.png;*.gif;*.bmp)|*.jpg;*.png;*.gif;*.bmp"

        If sfd.ShowDialog = DialogResult.OK Then

            Me.PikboxLogo.Image = Image.FromFile(sfd.FileName)

            System.IO.File.Copy(sfd.FileName, caminho2 + "foto.jpg", True)


        End If

 

queria gravar uma imagem mais da erro q nao consegue apagar pq ja esta usando no form

 

System.IO.IOException: 'O processo não pode acessar o arquivo 'C:\Users\Leandro\Desktop\Vendas 12\bin\Debug\foto\foto.jpg' porque ele está sendo usado por outro processo.'
essa e msg de erro

  • 3 weeks later...

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
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.