Questions tagged as '.net'

1
answer

Assert.AreEqual () fails when it seems to be alright

I can not seem to find any errors in my Lucky Bubble algorithm. But the assert returns error. I'm passing erroneous arguments to Assert.AreEqual() ? //The method for testing public static int[] BubbleSort(int[] vect) { f...
asked by 13.11.2015 / 14:02
1
answer

How to select more than one txt file with C #

I am writing a C # application that needs to receive more than 1 text file and display the Filename of them in an individual MessageBox for each. My question is in this file import, I was using OpenFileDialog to select th...
asked by 16.03.2016 / 18:52
1
answer

Encryption AES128 / 256 C # .net E SQL 2008/2012

Greetings, Does anyone know of any implementation of AES encryption compatible between C # and SQL? I want to encrypt in C # and decrypt in SQL.     
asked by 29.09.2015 / 19:04
2
answers

Start multiple threads in a repeat command

I have a project where I need to start 30 times a thread that will execute the same method, and wanted to do this in a repeat command, for example: for (int i = 0; i < 30; i++) { Thread t = new Thread(MetodoVoid);...
asked by 10.03.2016 / 13:00
2
answers

Error changing static property value

I have my class DadosConexao , this class is responsible for saving the connection string of the database, it contains the following properties: A statistical property StringConexao . isServ indicates whether it is a...
asked by 18.10.2015 / 01:01
3
answers

Problem in breaking a String

I have a string that is concatenated inside a loop , I wanted a new line with the concatenated values to be created for each loop . Here is the code I'm using: mensagem =""; for (int i = 0; i < titulosReceber.Rows.Count; i++) men...
asked by 05.08.2015 / 15:19
1
answer

Software with cost. Help? [closed]

Hello, everyone! Well, my situation is this: I have a program and I want to charge for the use, but I realized that if I left free there would be more customers. So I thought of limiting the system and charging a monthly fee for what the user...
asked by 28.05.2015 / 23:33
1
answer

Change color of a given cell

I have a DataGridView that has 8 columns (days of the week) and x rows (times of day). I need to paint only one cell, thus: HowcouldIdothis?Ialreadyhavethefollowingmethods:DateTimediaAgenda=DateTime.Now;DateTimediaInicioAgenda;Date...
asked by 25.11.2015 / 20:36
2
answers

Insert time and time into the database [closed]

I want to insert the time and date separately into the database, which has the timestamp and data fields, respectively. I have the following code on the button that inserts: SqlCommand sqlInsertCabecalho = new SqlCommand("Ins...
asked by 22.04.2016 / 15:48
2
answers

Error when closing Forms

I have the following code snippet to close my application. private void frmAgent_FormClosing(object sender, FormClosingEventArgs e) { if (MessageBox.Show("Deseja realmente fechar o sistema?", "Atenção!", MessageBoxButtons.YesNo, Me...
asked by 22.01.2015 / 16:20