Click here to Skip to main content
15,914,163 members
Home / Discussions / C#
   

C#

 
GeneralRe: Questions ive always wanted to ask. Pin
kripzz11-Jun-07 17:05
kripzz11-Jun-07 17:05 
GeneralRe: Questions ive always wanted to ask. Pin
Sathesh Sakthivel11-Jun-07 17:59
Sathesh Sakthivel11-Jun-07 17:59 
AnswerRe: Questions ive always wanted to ask. Pin
Christian Graus11-Jun-07 19:35
protectorChristian Graus11-Jun-07 19:35 
GeneralRe: Questions ive always wanted to ask. Pin
kripzz11-Jun-07 19:51
kripzz11-Jun-07 19:51 
GeneralRe: Questions ive always wanted to ask. Pin
Martin#11-Jun-07 20:07
Martin#11-Jun-07 20:07 
GeneralRe: Questions ive always wanted to ask. Pin
kripzz11-Jun-07 20:10
kripzz11-Jun-07 20:10 
GeneralRe: Questions ive always wanted to ask. Pin
Martin#11-Jun-07 20:11
Martin#11-Jun-07 20:11 
Questionaccess insert instruction problem Pin
dinosors11-Jun-07 15:24
dinosors11-Jun-07 15:24 
i don't know what to do really i've seen the code 100 times and it seem right
so if anyone can help....this's the code

public void ajout_dossier_image(string dossier,string matr)
{

if (Directory.Exists(dossier))
{ try
{
scanDirectory(dossier, "*.jpg", System.IO.SearchOption.TopDirectoryOnly);
String selectedImage = selectedImg;
if (imgList == null)
return;
foreach (String img in imgList) {ajout_image_seul(img, matr);}
}
catch (Exception exe) { MessageBox.Show("erreur du dossier de l'image");}
}
}
public void ajout_image_seul(string nom_img,string matr)
{
try
{
string date = "01/01/2005";//Convert.ToString(DateTime.Now)
string conStr = @"Provider=Microsoft.JET.OLEDB.4.0;" + @"data source=DermatoSoft_DB.mdb";
dataGridView1.DataSource = null;
ds = new DataSet();
conn = new OleDbConnection(conStr);
command = conn.CreateCommand();
conn.Open();
command.CommandText = "INSERT INTO Image (Numero_Patients,Nom_Image,Date_Image,"
+"Commentaire_Image) VALUES (" + matr + ",'" + nom_img + "','" + date + "','exemple commentaire')";
adapter = new OleDbDataAdapter(command);
adapter.Fill(ds);
conn.Close();
}
catch (Exception exe)
{
MessageBox.Show("erreur dans l'ajout de l'image");
}
}

thanks
AnswerRe: access insert instruction problem [modified] Pin
Mark Greenwood11-Jun-07 15:49
Mark Greenwood11-Jun-07 15:49 
GeneralRe: access insert instruction problem Pin
dinosors11-Jun-07 15:58
dinosors11-Jun-07 15:58 
GeneralRe: access insert instruction problem Pin
Mark Greenwood11-Jun-07 15:59
Mark Greenwood11-Jun-07 15:59 
GeneralRe: access insert instruction problem Pin
dinosors11-Jun-07 16:53
dinosors11-Jun-07 16:53 
GeneralRe: access insert instruction problem Pin
Mark Greenwood11-Jun-07 17:12
Mark Greenwood11-Jun-07 17:12 
GeneralRe: access insert instruction problem Pin
dinosors11-Jun-07 17:23
dinosors11-Jun-07 17:23 
GeneralRe: access insert instruction problem Pin
Mark Greenwood11-Jun-07 17:49
Mark Greenwood11-Jun-07 17:49 
QuestionString Formatting when Printing Pin
bfoo7511-Jun-07 13:50
bfoo7511-Jun-07 13:50 
AnswerRe: String Formatting when Printing Pin
Luc Pattyn11-Jun-07 13:54
sitebuilderLuc Pattyn11-Jun-07 13:54 
GeneralRe: String Formatting when Printing Pin
bfoo7511-Jun-07 14:19
bfoo7511-Jun-07 14:19 
QuestionHow to make a Textbox only take numbers? Pin
dipuks11-Jun-07 11:33
dipuks11-Jun-07 11:33 
AnswerRe: How to make a Textbox only take numbers? Pin
Giorgi Dalakishvili11-Jun-07 11:44
mentorGiorgi Dalakishvili11-Jun-07 11:44 
AnswerRe: How to make a Textbox only take numbers? Pin
sxbluebird11-Jun-07 19:17
sxbluebird11-Jun-07 19:17 
GeneralRe: How to make a Textbox only take numbers? Pin
dipuks12-Jun-07 4:07
dipuks12-Jun-07 4:07 
AnswerRe: How to make a Textbox only take numbers? Pin
Revathij12-Jun-07 2:18
Revathij12-Jun-07 2:18 
QuestionMaking an animated UI Pin
RobMacAF11-Jun-07 11:20
RobMacAF11-Jun-07 11:20 
AnswerRe: Making an animated UI Pin
RobMacAF11-Jun-07 15:12
RobMacAF11-Jun-07 15:12 

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.