voila le code. J'ai connecté ma Bd "Dvd" access j'associe au phototextbox un chemin de fichier Bouton 1 pour changer de chemin bouton 2 pour sauver ma bd. En exliquant sur button 2 ça merde.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click OpenFileDialog1.ShowDialog() PhotoTextBox.Text = OpenFileDialog1.FileName End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click ListeBindingSource.EndEdit() ListeTableAdapter.Update(Me.DvdDataSet.Liste) End Sub
Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove PictureBox1.ImageLocation = PhotoTextBox.Text End Sub
|