Click here to Skip to main content
15,887,446 members
Home / Discussions / C#
   

C#

 
GeneralRe: Any free GS-1 Databar classes? Pin
nickslick22-Apr-12 12:02
nickslick22-Apr-12 12:02 
Questionabout a code Pin
Gayani Udawatta22-Apr-12 4:26
Gayani Udawatta22-Apr-12 4:26 
AnswerRe: about a code Pin
Richard MacCutchan22-Apr-12 4:33
mveRichard MacCutchan22-Apr-12 4:33 
GeneralRe: about a code Pin
PIEBALDconsult22-Apr-12 6:46
mvePIEBALDconsult22-Apr-12 6:46 
GeneralRe: about a code Pin
Richard MacCutchan22-Apr-12 21:01
mveRichard MacCutchan22-Apr-12 21:01 
AnswerRe: about a code Pin
PIEBALDconsult23-Apr-12 3:14
mvePIEBALDconsult23-Apr-12 3:14 
GeneralRe: about a code Pin
Lutosław23-Apr-12 11:04
Lutosław23-Apr-12 11:04 
Questionconnect to access database Pin
MemberDotNetting22-Apr-12 3:39
MemberDotNetting22-Apr-12 3:39 
I want to retrieve the name of the database from a text box (datasource = txtdatabase.text), but the connection does not work.
the connection is made ​​with the direct assignment of name database directly
cnx = new OleDbConnection ("Provider = Microsoft.Jet.OLEDB.4.0; Data Source = D: \ \ mabase.mdb");


C#

class Connexion
{
static public OleDbConnection cnx;
static bool ok;

static public Boolean getConnexion()
{
if (cnx == null)
{
cnx = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+datasource);
try
{
cnx.Open();
ok = true;
}
catch (OleDbException)
{
ok = false;
}
}
return ok;
}
}
AnswerRe: connect to access database Pin
Wes Aday22-Apr-12 3:46
professionalWes Aday22-Apr-12 3:46 
GeneralRe: connect to access database Pin
MemberDotNetting22-Apr-12 3:48
MemberDotNetting22-Apr-12 3:48 
AnswerRe: connect to access database Pin
OriginalGriff22-Apr-12 3:54
mveOriginalGriff22-Apr-12 3:54 
GeneralRe: connect to access database Pin
Wes Aday22-Apr-12 5:47
professionalWes Aday22-Apr-12 5:47 
AnswerRe: connect to access database Pin
Richard MacCutchan22-Apr-12 4:00
mveRichard MacCutchan22-Apr-12 4:00 
GeneralRe: connect to access database Pin
MemberDotNetting22-Apr-12 4:14
MemberDotNetting22-Apr-12 4:14 
GeneralRe: connect to access database Pin
Dave Kreskowiak22-Apr-12 5:45
mveDave Kreskowiak22-Apr-12 5:45 
GeneralRe: connect to access database Pin
Enhakiel26-Apr-12 9:17
Enhakiel26-Apr-12 9:17 
QuestionQuestions about saving objects and databases Pin
larsp77722-Apr-12 0:13
larsp77722-Apr-12 0:13 
AnswerRe: Questions about saving objects and databases Pin
Keith Barrow22-Apr-12 0:49
professionalKeith Barrow22-Apr-12 0:49 
GeneralRe: Questions about saving objects and databases Pin
larsp77722-Apr-12 1:50
larsp77722-Apr-12 1:50 
AnswerRe: Questions about saving objects and databases Pin
jschell23-Apr-12 10:58
jschell23-Apr-12 10:58 
QuestionHow to detect if a *.bmp files is modificated in Paint? Pin
amx_tiger21-Apr-12 20:30
amx_tiger21-Apr-12 20:30 
AnswerRe: How to detect if a *.bmp files is modificated in Paint? Pin
Pete O'Hanlon21-Apr-12 20:36
mvePete O'Hanlon21-Apr-12 20:36 
GeneralRe: How to detect if a *.bmp files is modificated in Paint? Pin
amx_tiger21-Apr-12 20:51
amx_tiger21-Apr-12 20:51 
GeneralRe: How to detect if a *.bmp files is modificated in Paint? Pin
Pete O'Hanlon21-Apr-12 22:56
mvePete O'Hanlon21-Apr-12 22:56 
GeneralRe: How to detect if a *.bmp files is modificated in Paint? Pin
amx_tiger21-Apr-12 23:25
amx_tiger21-Apr-12 23:25 

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.