Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:项目发布後修改数据源问题?

1楼
tungwun 发表于:2011/11/20 19:18:00
用这代码每次打开项目要确定文件位置,很不方便?

If e.Name = "连接名称" Then
    Dim
 dlg As New OpenFileDialog
    dlg.Filter= 
"Access文件|*.mdb"
    If dlg.ShowDialog = DialogResult.Ok Then
        e.ConnectionString = 
"Provider=
Microsoft.Jet.OLEDB.4.0;Data Source=" & dlg.FileName & ";Persist Security Info=False"
    End
 If
End
 if
2楼
czy 发表于:2011/11/20 22:15:00
那你为何不使用示例一的代码呢,示例一就不需要选择。
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .01953 s, 2 queries.