Click here to Skip to main content
15,905,558 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to insert a new line in a table of a .sdf file smart device application Pin
Stanciu Vlad9-May-10 20:28
Stanciu Vlad9-May-10 20:28 
GeneralRe: how to insert a new line in a table of a .sdf file smart device application Pin
bacem smari9-May-10 21:06
bacem smari9-May-10 21:06 
GeneralRe: how to insert a new line in a table of a .sdf file smart device application Pin
Stanciu Vlad9-May-10 21:25
Stanciu Vlad9-May-10 21:25 
GeneralRe: how to insert a new line in a table of a .sdf file smart device application Pin
bacem smari9-May-10 21:37
bacem smari9-May-10 21:37 
GeneralRe: how to insert a new line in a table of a .sdf file smart device application Pin
Stanciu Vlad9-May-10 21:57
Stanciu Vlad9-May-10 21:57 
GeneralRe: how to insert a new line in a table of a .sdf file smart device application Pin
bacem smari9-May-10 22:15
bacem smari9-May-10 22:15 
GeneralRe: how to insert a new line in a table of a .sdf file smart device application Pin
Stanciu Vlad9-May-10 22:23
Stanciu Vlad9-May-10 22:23 
GeneralRe: how to insert a new line in a table of a .sdf file smart device application Pin
bacem smari9-May-10 22:31
bacem smari9-May-10 22:31 
GeneralRe: how to insert a new line in a table of a .sdf file smart device application Pin
Stanciu Vlad9-May-10 22:38
Stanciu Vlad9-May-10 22:38 
QuestionMessage Removed Pin
9-May-10 4:13
Sr...Frank9-May-10 4:13 
AnswerRe: Close All Child Window on Menu Click! Pin
Not Active9-May-10 4:48
mentorNot Active9-May-10 4:48 
AnswerRe: Close All Child Window on Menu Click! Pin
Heinzzy9-May-10 5:47
Heinzzy9-May-10 5:47 
GeneralRe: Close All Child Window on Menu Click! Pin
Sr...Frank9-May-10 6:36
Sr...Frank9-May-10 6:36 
GeneralRe: Close All Child Window on Menu Click! Pin
Luc Pattyn9-May-10 6:41
sitebuilderLuc Pattyn9-May-10 6:41 
GeneralRe: Close All Child Window on Menu Click! Pin
Not Active9-May-10 9:48
mentorNot Active9-May-10 9:48 
Question"Search row" in DataGridView Pin
eyalbi0079-May-10 2:52
eyalbi0079-May-10 2:52 
QuestionRemote Data Acces RDA not allowed in csharp smart device,???? Pin
Tunisien869-May-10 2:05
Tunisien869-May-10 2:05 
AnswerRe: Remote Data Acces RDA not allowed in csharp smart device,???? Pin
Stanciu Vlad9-May-10 9:30
Stanciu Vlad9-May-10 9:30 
GeneralRe: Remote Data Acces RDA not allowed in csharp smart device,???? Pin
Tunisien869-May-10 10:16
Tunisien869-May-10 10:16 
GeneralRe: Remote Data Acces RDA not allowed in csharp smart device,???? Pin
Stanciu Vlad9-May-10 10:28
Stanciu Vlad9-May-10 10:28 
GeneralRe: Remote Data Acces RDA not allowed in csharp smart device,???? Pin
Tunisien869-May-10 23:55
Tunisien869-May-10 23:55 
GeneralRe: Remote Data Acces RDA not allowed in csharp smart device,???? Pin
Tunisien8611-May-10 5:57
Tunisien8611-May-10 5:57 
Hi Vlad,
Finally I depass the problem of the connexion to server by the DB File's attachment Laugh | :laugh: . No exception apperas.Still now the problem of the filling of my combobox .I try with sqldataset instead of the sqlreader like this:
string sConnection = "Data Source=127.0.0.1,1433;Persist Security Info=True;Initial Catalog=GMAO;User ID=sa;Password=sa";
   string sSQL = "SELECT com FROM energie; ";
   SqlConnection conn = new SqlConnection(sConnection);
   SqlCommand comm = new SqlCommand(sSQL, conn);
   DataSet ds = new DataSet();
   SqlCeDataAdapter da = new SqlCeDataAdapter();
   SqlDataReader dr = null;
   try
   {
    
    comm.Connection.Open();
    da.Fill(ds, "SQL Temp Table");
    foreach(DataRow d in ds.Tables[0].Rows)
    comboBox1.Items.Add(d.ToString());
   }
   catch (SqlException ex)
   {
    //MessageBox.Show("connexion impossible");
    MessageBox.Show(ex.Message);
    return;
   }

   dr.Close();
   comm.Connection.Close();
  }

but nothing is added to my combobox.

Thanks in all cases for u collaboration
Laugh | :laugh:
I am really so happy
QuestionDataGridView and On Screen Keyboard Pin
Member 36814439-May-10 1:31
Member 36814439-May-10 1:31 
GeneralRe: DataGridView and On Screen Keyboard Pin
Arindam Tewary9-May-10 20:33
professionalArindam Tewary9-May-10 20:33 
QuestionHow to use a file .udl as a connectionstring in csharp smart device??? Pin
Tunisien869-May-10 0:13
Tunisien869-May-10 0:13 

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.