Questions tagged as 'c#'

1
answer

Byte Cast [] to String and from String to Bytes

I explain, I have a query in SQL that returns me sometimes Int's and sometimes Doubles +--------+-----------+ | Algo | Resultado | +--------+-----------+ | Algo1 | 521 | +--------+-----------+ | Algo2 | 5.12 | +--------+--------...
asked by 09.03.2018 / 12:58
3
answers

Create threads within a cycle

I have a problem I can not understand how to create threads within a cycle and that they all run simultaneously, and when all the threads are finished, send a message. I have this code: for (int i = 0; i <= x - 1; i++) { if (File.Exi...
asked by 23.03.2018 / 18:08
3
answers

When I read an email, he does not read me some attachments. I use the IMAP protocol which contains the S22.IMAP dll

I have the following code, in which I use the IMAP protocol that contains the S22.IMAP dll: using (ImapClient client = new ImapClient(imap, 993, usuario, psw, AuthMethod.Login, true)) { foreach (var uid in cl...
asked by 27.03.2018 / 17:55
1
answer

Enter fractions textbox C #

I have to make a program that solves the determinant of a matrix, n11 = double.Parse(b11.Text); and works well with integers. But I also want it to work if I enter numbers like 1/4, 3/16 and so on. How can I have him read the fraction to...
asked by 16.03.2018 / 04:25
3
answers

Comma decimal in the VS editor

It happens that the decimal separator, according to the Windows regional configuration is the comma, in Excel if I press the numerical keyboard the point appears a comma, the same happens with the calculator, but in the code editor of C #, if I...
asked by 17.03.2018 / 05:49
2
answers

Disable a texbox to be able to enter data in another c #

Ok, I'm doing a calculator, which is already functional, but add an option to re-size the form, and show me a temperature converter, my problem is basically the first texbox (the one that shows the results in the calculator) since when I enter d...
asked by 22.02.2018 / 01:35
1
answer

Xamarin POST Request headers

Hello friends I would like to send a POST from Xamarin , but I am getting this error when I try to send it and I would like to know if I am sending my headers correctly. When I try to send my app it stops and it throws me an error that says...
asked by 21.02.2018 / 00:44
2
answers

pass the value of a select to another select

I have two views, view1 = victims and view2 = reporter that are the same only change the name and the id of the person entered 1 = victim and 3 = whistleblower. as a complainant I have a check that when checked would have to pull the victim's...
asked by 19.02.2018 / 15:28
1
answer

I can not assign a double value to a datagrid, it takes it as int

public static int contador_fila = 0; private void btn_Colocar_Click(object sender, EventArgs e) { if (Utilidades.ValidarFormulario(this,errorProvider1) == false) { bool existe = false; int num_fila =0; if (cont...
asked by 19.03.2018 / 20:32
1
answer

Problem building data from a DataSet manually C #

I have a dataset that contains a structure of 12 columns and I manually add 3 columns Entrada Parámetro , Salida Parámetro and Parámetro from another dataset , then link it to DataGridView , I am working w...
asked by 15.02.2018 / 19:55