Questions tagged as 'c#'

2
answers

Problems with C # and TextMode="Number"

Good evening, I currently have a big problem with c # in asp.net, the following happens: To the textbox I am placing a textmode="Number" so that only adding numbers, it turns out that for a strange reason Visual Studio 2012 send this error:  ...
asked by 07.06.2016 / 04:52
2
answers

UserControl bring to the front (have the focus)

I am working on a desktop application (Windows forms) in which my windows are UserControl which I call from a menu that is vertically on the left side, on the right side I have a Panel that serves as a floor where I call the UserControl, but I j...
asked by 29.04.2016 / 20:58
1
answer

WPF, style for buttons in XAML

I'm a C # programmer and I'm just using WPF and I'd like to replicate these buttons in xaml, starting with their form!     
asked by 04.05.2016 / 04:22
2
answers

Add decimals and integers

For pitching statistics in baseball you have the following: 1/3 equals 1 out, 2/3 equals 2 outs and 3/3 equals 3 outs. When you have 3 outs, it is considered a full inning. If you have 5 outs, it is considered 1 inning and 2/3 thirds of...
asked by 03.01.2019 / 20:11
1
answer

Parameter value is out of range C #

Good hope you can help me, I'm doing an insert but at the time of inserting I get the following error. Parameter value 3420590313.72700000 is out of range my Store procedure that performs the insertion is decimal (19,8) and the column that...
asked by 02.01.2019 / 23:17
1
answer

Get values from a query sql stringbuilder in c #

How could I get the data that this query throws at me and keep them in a variable? System.Text.StringBuilder sqlidos = new System.Text.StringBuilder(); sqlidos.Append("select td.id_traslado,td.id_traslado_detalle,td.id_articulo...
asked by 27.11.2018 / 16:18
1
answer

How to create an autorun on a USB for windows 10?

I made a small program in C# , this I have it in a usb memory that saves the windows user of the pc where the usb is connected, but I want it to run every time I connect it to a pc with windows but that is transparent for the user, I was t...
asked by 26.11.2018 / 18:46
1
answer

How to use BackGroundWorker in C #

I have a query. I would like to use the backgroundworker in my application, but I have no idea how to do it. My application takes a long time to perform certain validations, while this is done, it is frozen. The idea I have is to place a CANCEL...
asked by 24.11.2018 / 15:53
1
answer

Can I select which validations of a property of a class to use according to what view?

//Propiedad de la clase "Usuario" con sus respectivas validaciones [ValidateDNIRepetit(ErrorMessage = "El correo ya existe")] [Required(ErrorMessage = "El campo no puede estar vacio")] [EmailAddress(ErrorMessage = "No es una dirección de correo v...
asked by 14.03.2016 / 17:43
2
answers

"FileNotFoundException" when reading / writing files

Jolly Jumpers A sequence is "Jolly Jumper" if the absolute value of the differences between values exists in the provided string. Entrada: una cadena con números Salida: true/ false Prueba: 1432 : true 5142 : false This is the code u...
asked by 25.01.2016 / 23:37