Questions tagged as 'c#'

4
answers

Load DateTime in c # in dd / mm / yyyy format

Good day! I'm doing a program of loading and showing movies, The movie class has an attribute of type DateTime release date. My problem is that, when I upload the release date in dd / mm / yyyy format, I do not take it. I have to load yyyy / mm...
asked by 28.11.2017 / 13:49
2
answers

The recipient did not understand the heading 'Security' Web Service

I am consuming a web service but I get the following error:    The recipient of this message did not understand the 'Security' heading   from the namespace   ' link ',   so the message was not processed.       This error usually indicates th...
asked by 21.11.2017 / 16:03
1
answer

C # Add attachments to a database in Access

I have a database in Access that has a field of type 'Datos Ajuntos' and I would like to insert pdf files. I have the PDF path, I just need to send it. I imagine it would be something like: //Abrimos la conexión mas arriba OleDbCommand...
asked by 03.04.2017 / 04:53
2
answers

Interpolate C # 6 strings

I am interpolating strings and at the end of the line of code when I put the ; it gives me a message ( Empty statement is redundant ), but it still compiles the code, I show image. The code is as follows: static void FillTheseV...
asked by 03.10.2016 / 22:50
0
answers

Pass default values to child class functions in C # [closed]

I have a EmpleadoProgramador class that inherits from Empleado , with a CalcularSueldo() function that calculates the salary. I need it to have default values, without needing to pass them by argument. I could only make it...
asked by 09.05.2017 / 01:00
2
answers

What is the best way to convert a string to Capitalize? [duplicate]

I have a string which I need to convert its value to capitalize . Example: string cadena = "HOLA MUNDO"; I need to return the value like this - > Hello World What would be the best way to achieve this?     
asked by 15.05.2018 / 22:58
3
answers

Error doing a Select in Mysql from C #

public string Usuario { get { return usuario; } set { usuario = value; } } public string Clave { get { return clave; } set { clave = value; } } public string Tipo { get { return tipo; } set { tipo = value; } } MySqlComma...
asked by 21.08.2017 / 21:30
3
answers

List last record inserted in Mysql c #

I need to get the last data inserted depending on a search. foreach (DataGridViewRow row in dgvDispositivos.Rows) { string dispositivo = row.Cells[1].Value.ToString(); //Aqui hago la consulta dependiendo del usuario en el ciclo: bd.ejecu...
asked by 13.12.2016 / 09:12
0
answers

How to take the percentages well in report foot teleriks Q3 2013

Very good afternoon, I am trying to create a report in teleriks with the assistant, trying to make a foot, where I show the percentage of projects canceled vs the projects created, the graphic does it well, however it gives me all the 100% value...
asked by 24.04.2016 / 02:45
2
answers

Get big-endian from a string?

I have a string "730C" and I need to get a INT big-endian string packetString = "1F:73:0C:01:00:0E:01:01:29:35:1D:00:02:00:01:00:00:00:E7:03:0B:00:65:73:74:65:73:69:74:72:61:62:61:02:01:00:00:00:00"; string ChrIndx = pac...
asked by 13.03.2016 / 19:17