数据绑定位置源访问C# [英] Data Binding Location Source Access C#
本文介绍了数据绑定位置源访问C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨.我想将数据绑定源保存在易变的位置,因为当我将应用程序安装到另一台PC时,找不到Access数据库.因此,当我第一次启动该应用程序时,我希望可以在pc中进行搜索以将其保存在文本文件中,以便可以从应用程序中读取该文本文件. 对不起,我的床是英语!
Hi. I want to save in varabile location source of data binding, because when i install the application to another pc, the Access Database can''t be found. so when i first start the application i wish to can search it in pc to be save location in text file, to can read the text file from app..
Sorry for my bed english!
推荐答案
如果您的访问数据库是用户数据库(用户可能知道),则在第一时间显示一个弹出窗口以选择db文件的位置,并将该位置存储在配置文件中[local%ProgramData%,%AppData%]或在登记处.
如果数据库是系统数据库[用户不希望知道的数据库],则随它一起进行安装.
谢谢
derin
Hi,
If your access database is a user database[which user may know], then show a popup at the first time to select the location of db file and store the location in either a config file [local %ProgramData%, %AppData%] or in registery.
If the database is system database [which user don''t want to know], then let it go with the installation.
thanks
derin
这篇关于数据绑定位置源访问C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文