VB Net中的文件对话框 [英] File dialog in vb net
问题描述
大家好,
我在应用程序中使用openfiledialog将图像设置为图片框.
其后我想保存图像路径以及有关访问数据库中人员的其他详细信息,如果我不使用openfiledialog,它将从debug(默认位置)文件夹中获取数据库,但是如果我使用openfiledialog设置图像,则询问数据库形式是我不需要图像的目录.
我没有如何处理这个问题.
在此先感谢:)
Hi all,
I am using openfiledialog in my application to set image to picture box.
Its working properly after that i want to save image path along with other details about person in access database.If I do not use openfiledialog then it will take database from debug(default location) folder but if i use openfiledialog to set image then it ask database form that directory where image is located,which i do not want.
I am not getting how to treat with this problem.
Thanks in advance :)
推荐答案
看看OpenFileDialog的target ="_ blank" title ="New Window"> ^ ]属性.
设置不正确可能是导致您出现问题的原因.
Take a look at the RestoreDirectory[^] property of theOpenFileDialog
.
Having this set incorrectly could be the cause of your problem.
这篇关于VB Net中的文件对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!