0

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

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by Jx_Man
0
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
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.