prompting user for bitmap name
i have a small question. I am using the following to save a bitmap
my problem is name1 is a variable name and not the name i want the bitmap to be saved under. So if the user enters ' circle1 ' in the textbox ( i.e name1 = circle1) i want the bitmap name to be circle1.
Thank You
Sam
Re: prompting user for bitmap name
Don't you have to give it the full path to save? Not just the name? Why not just use a SaveDialog? If you still want to use the textbox, then just use the textbox text property to get the text that was entered in..
VB Code:
'replace directorypath with full path to the directory, textbox should be name without extension..
bmap.Save(DirectoryPath & "\" & TextBox1.Text & ".bmp")
Re: prompting user for bitmap name
The SaveDialog would be better.
The first user that enters a ? or / in the textbox will cause the application to crash.