Click here to Skip to main content
15,914,905 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Reading HTML table Pin
Dave Kreskowiak12-Apr-07 14:23
mveDave Kreskowiak12-Apr-07 14:23 
GeneralRe: Reading HTML table Pin
krk101112-Apr-07 17:03
krk101112-Apr-07 17:03 
QuestionAdding controls to a tab control at runtime Pin
steve_rm12-Apr-07 7:21
steve_rm12-Apr-07 7:21 
AnswerRe: Adding controls to a tab control at runtime Pin
MatrixCoder12-Apr-07 8:43
MatrixCoder12-Apr-07 8:43 
QuestionPopulating Child controls of a Tabcontrol Pin
DXDAVIES12-Apr-07 5:39
DXDAVIES12-Apr-07 5:39 
QuestionAdding new rows to Typed DataSet Pin
Steven J Jowett12-Apr-07 5:08
Steven J Jowett12-Apr-07 5:08 
AnswerRe: Adding new rows to Typed DataSet Pin
kubben12-Apr-07 5:29
kubben12-Apr-07 5:29 
Questionconnect to password-protected access-file Pin
Smithers-Jones12-Apr-07 4:18
Smithers-Jones12-Apr-07 4:18 
vb.net

URGENT!

i am loading data from an access-database like this:

 <br />
 dim MyConnection As String = "Provider= Microsoft.Jet.OLEDB.4.0; Data Source=MyDatabase.mdb;"<br />
 dim connStr As String = "SELECT * FROM table1"<br />
 dim odc As OleDbConnection= New OleDbConnection(MyConnection )<br />
 dim oda As OleDbDataAdapter= New OleDbDataAdapter(connStr, odc)<br />
 dim odb As OleDbCommandBuilder= New OleDbCommandBuilder(oda)<br />
 dim dat As DataTable= New DataTable("MyDatatable")<br />
 dim bmb As BindingManagerBase<br />
<br />
 odc.Open()<br />
 oda.Fill(dat)<br />
 odc.Close()<br />
<br />
 bmb = Me.BindingContext(dat)<br />
 datagrid1.DataSource = dat<br />


now i want to use a password-protected database. where do i have to insert the password in the example above? (i know that i shouldn't write the password into my code, but the file doesn't contain critical data. i just want to prevent, that user's messing up the file)
and please, i need a solution for this example, not another way of connecting to the mdb-file, since i don't want to rewrite half of my project.

thanks.
AnswerRe: connect to password-protected access-file Pin
H@is@here12-Apr-07 4:40
H@is@here12-Apr-07 4:40 
GeneralRe: connect to password-protected access-file Pin
Smithers-Jones12-Apr-07 21:53
Smithers-Jones12-Apr-07 21:53 
Questionretrieve arabic field Pin
charchabil0312-Apr-07 2:03
charchabil0312-Apr-07 2:03 
Questionsetup project in 2003 Pin
Kirtibangalore12-Apr-07 0:46
Kirtibangalore12-Apr-07 0:46 
AnswerRe: setup project in 2003 Pin
amaneet12-Apr-07 1:40
amaneet12-Apr-07 1:40 
AnswerRe: setup project in 2003 Pin
kubben12-Apr-07 2:30
kubben12-Apr-07 2:30 
QuestionFile Transfer in Desktop application Pin
nitin_ion11-Apr-07 23:45
nitin_ion11-Apr-07 23:45 
AnswerRe: File Transfer in Desktop application Pin
Dave Kreskowiak12-Apr-07 4:17
mveDave Kreskowiak12-Apr-07 4:17 
QuestionCapture windows shutdown event Pin
ravihd11-Apr-07 23:43
ravihd11-Apr-07 23:43 
AnswerRe: Capture windows shutdown event Pin
amaneet12-Apr-07 1:46
amaneet12-Apr-07 1:46 
AnswerRe: Capture windows shutdown event Pin
Dave Kreskowiak12-Apr-07 4:15
mveDave Kreskowiak12-Apr-07 4:15 
Questioncount of file in a directory Pin
aphei11-Apr-07 22:01
aphei11-Apr-07 22:01 
AnswerRe: count of file in a directory Pin
Marek Grzenkowicz11-Apr-07 22:45
Marek Grzenkowicz11-Apr-07 22:45 
GeneralRe: count of file in a directory Pin
aphei12-Apr-07 16:24
aphei12-Apr-07 16:24 
Questionasycnh class Pin
nikhil123411-Apr-07 21:29
nikhil123411-Apr-07 21:29 
AnswerRe: asycnh class Pin
Christian Graus11-Apr-07 23:18
protectorChristian Graus11-Apr-07 23:18 
AnswerRe: asycnh class Pin
amaneet12-Apr-07 1:49
amaneet12-Apr-07 1:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.