satriano17
Gebruiker
- Lid geworden
- 30 sep 2012
- Berichten
- 342
Edmoor, nog niet. Werkt zoals vroeger. Word geen naam vervangt in Text1 ma steeds na elkaar. Als ik een image vervang dan wordt de nieuwe naam onder de oude.
De oude naam blijf bestaan.
Ik heb uw code gebruikt. IK heb ook uw zip geopend. Is zoals hier.
De oude naam blijf bestaan.
Ik heb uw code gebruikt. IK heb ook uw zip geopend. Is zoals hier.
Code:
Private Sub Image1_Click(Index As Integer)
If Right(App.Path, 1) <> "\" Then Slash = "\"
With CommonDialog1
.InitDir = App.Path & Slash & "Graphics"
.FileName = App.Path & Slash & "Graphics" & "\*.*"
.ShowOpen
End With
Image1(Index).Picture = LoadPicture(CommonDialog1.FileName)
Dim a As String
a = CommonDialog1.FileTitle
Text1.Text = Text1.Text & Left$(a, Len(a) - 4) & vbCrLf ' Schrijf naam afb in Text1 Multiline
End Sub
Laatst bewerkt: