Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: How to use a file .udl as a connectionstring in csharp smart device??? Pin
Tunisien869-May-10 1:47
Tunisien869-May-10 1:47 
Question"Raw Ethernet Packet Sending" by "miahrugger" Pin
mragers8-May-10 23:09
mragers8-May-10 23:09 
AnswerRe: "Raw Ethernet Packet Sending" by "miahrugger" Pin
OriginalGriff8-May-10 23:14
mveOriginalGriff8-May-10 23:14 
Questionwindows picture and fax viewer Pin
jojoba20118-May-10 21:22
jojoba20118-May-10 21:22 
AnswerRe: windows picture and fax viewer Pin
Dimitri Witkowski8-May-10 21:41
Dimitri Witkowski8-May-10 21:41 
RantSOLVED Pin
jojoba20118-May-10 23:35
jojoba20118-May-10 23:35 
Questionremember user name password in login form? [modified] Pin
charles henington8-May-10 19:28
charles henington8-May-10 19:28 
AnswerRe: remember user name password in login form? Pin
Stanciu Vlad8-May-10 20:58
Stanciu Vlad8-May-10 20:58 
QuestionSQL server name not found:Admin-PC\MSSQLSERVER,1433 Pin
Tunisien868-May-10 4:58
Tunisien868-May-10 4:58 
AnswerRe: SQL server name not found:Admin-PC\MSSQLSERVER,1433 Pin
Abhinav S8-May-10 5:21
Abhinav S8-May-10 5:21 
GeneralRe: SQL server name not found:Admin-PC\MSSQLSERVER,1433 Pin
Tunisien868-May-10 5:58
Tunisien868-May-10 5:58 
AnswerRe: SQL server name not found:Admin-PC\MSSQLSERVER,1433 Pin
Abhinav S8-May-10 9:06
Abhinav S8-May-10 9:06 
AnswerRe: SQL server name not found:Admin-PC\MSSQLSERVER,1433 Pin
Stanciu Vlad8-May-10 6:34
Stanciu Vlad8-May-10 6:34 
GeneralRe: SQL server name not found:Admin-PC\MSSQLSERVER,1433 Pin
Tunisien868-May-10 10:02
Tunisien868-May-10 10:02 

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.