No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi, I have the following code: [CODE] try { var conn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Database.accdb"); var cmd = new OleDbCommand("UPDATE Resources SET Image=? WHERE ResourceName=?", conn); cmd.Parameters.Add("Image", OleDbType.VarChar).Value = listView.SelectedItems[0].Tag; cmd.Parameters.Add("ResourceName", OleDbType.VarChar).Value = _username; conn.Open(); cmd.ExecuteNonQuery(); conn.Close(); } catch(Exception ex) { Console.WriteLine(ex.Message); } [/CODE] I keep getting the following error … |
|
Hi, I have a gridview with checkboxes in the 3rd column. I am trying to work out when they are selected. I have the following code: [CODE]foreach (GridViewRowInfo dr in gvMovies.Rows) if (dr.Cells[2].Value = true) MessageBox.Show("Row " + dr.Index + " selected");[/CODE] I get the following error: [B]Cannot implicitly convert … |
|
Hi, I have a small issue, wondering if anyone could help. I have a form, FormBorderStyle is set to None. I have a groupBox on the form called gbLogin. I want to be able to move the form via anywhere on the groupBox. I have searched the net and have … |