skip to Main Content

Mysql Loop freeze Window in C#

I have mysql loop using (var conn = new MySqlConnection(connectionString)) { try { conn.Open(); int count = 1; foreach (var value in values) { MySqlCommand cmd; string qu = "INSERT INTO db(val1,val2,val3,val4,val5) VALUES("+value+")"; cmd = new MySqlCommand(qu, conn); cmd.ExecuteNonQuery(); textBox1.Text…

VIEW QUESTION

I need that when I send an email through Outlook using code written in C# it is sent with the email signature – Artificial Intelligence

private void btnEnviar_Click(object sender, EventArgs e) { try { // Crear una instancia de Outlook Outlook.Application outlookApp = new Outlook.Application(); // Crear un objeto de correo electrónico Outlook.MailItem mailItem = (Outlook.MailItem)outlookApp.CreateItem(Outlook.OlItemType.olMailItem); // Obtener la firma del correo electrónico string signature…

VIEW QUESTION

Newtonsoft.Json DeserializeObject not working

I have a very simple JSON file: [ { "smbshare": { "name": "Backup", "path": "\linuxserverbackup" }, "smbshare2": { "name": "Tools", "path": "\linuxservertools" } } ] My model class: public class SmbShare { [JsonProperty("name")] public string Name { get;set; } [JsonProperty("path")]…

VIEW QUESTION
Back To Top
Search