dim filename as string
filename = filename1.text
form1.caption = filename
filename1.text's caption property is "myfile"
when the form loads, the caption is myfile
but when you type something else in the filename1.text box, form1's caption remains myfile
also, when i open a text file, i want the filename to be displayed in filename1.text, so i used this code
filename1.text = commondialog1.filename
but this code doesnt work either. why doesnt this code(s) work?
filename = filename1.text
form1.caption = filename
filename1.text's caption property is "myfile"
when the form loads, the caption is myfile
but when you type something else in the filename1.text box, form1's caption remains myfile
also, when i open a text file, i want the filename to be displayed in filename1.text, so i used this code
filename1.text = commondialog1.filename
but this code doesnt work either. why doesnt this code(s) work?