can any 1 help me...my problem is :

i hav a text box named text3 and a picturebox named as picture1

if any thing is typed in text3 then picture1 should display the picture which is stored in "c:\" with the name of the value that is typed in text3.

need help asap

Private Sub Text3_KeyPress(KeyAscii As Integer)
On Error GoTo msg
If KeyAscii = 13 Then ' working if enter pressed
    Picture1.Picture = LoadPicture("C:\" & Text3.Text)
End If
Exit Sub
msg:
    MsgBox Err.Description
End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.