Ok i want to load a picture from a file using MsRichtextbox controlCode goes like this on load :
rs.LoadFile ("d:background.txt")
loaded1.Caption = loaded
loaded = rs.Text
Image1.Picture = LoadPicture(loaded)
it works fine but i want to tell computer that if that file does not exists which in this case would be "background.txt" then image1.picture = i1.picure can any plz help me with this fast!and btw image1.picture = i1.picture works fine too just need to know how to get rid of error...if it gives error then load the image from gui
thx in advance![]()




Code goes like this on load :
and btw image1.picture = i1.picture works fine too just need to know how to get rid of error...if it gives error then load the image from gui
Reply With Quote