Questions tagged as 'c#'

2
answers

24-hour Data-Time format

I need to change the data-time format to 24 hours. I'm working with C # MVC5 This is my Model [Display(Name = "Fecha y Hora de Inicio")] [DataType(DataType.Date)] [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy...
asked by 02.05.2017 / 18:23
3
answers

Delete element of a class arrangement C # (. net)

I was searching the internet to see if I could find anything but I could not find anything, and unfortunately my knowledge is still low, which is why I came here again. I tell you, I have a class library with a class called "professor" with i...
asked by 07.05.2017 / 15:15
1
answer

error when passing gridview data to another webform [closed]

I'm trying when I click to select in the gridview I show it in another webform to then create a ticket and store it in a database, the gridview is filled through a txt file but when I want to pass the data that I select, it throws me an error cs...
asked by 29.03.2017 / 13:57
2
answers

Export Excel multiple asp c #

Good I would like you to help me I'm doing an export of an excel but with a multiple checkbox because one by one if I export but when I select two or more just throws me an excel. since I do not vote any error but I want that when you select sev...
asked by 28.03.2017 / 00:02
1
answer

Collisions in game snake c #

I'm doing the snake game in c #, and the collisions with the walls and with the snake itself are giving me problems, this is the whole code that I've been up to now: using System; using System.Collections.Generic; using System.Linq; using Syst...
asked by 06.04.2017 / 11:02
2
answers

Select certain columns with excel query C #

I have the following query to select an excel document, Select * From [Sheet1$] But this excel has many columns, and I just need columns A, C, E, G, Z, AA. I tried to do the following, but it did not work Select * From [Sheet1$A1:A,C1:...
asked by 07.04.2017 / 02:04
1
answer

Error in Enumerable.Except method of LinQ

I have the following code: var vistaRecibos = (from r in ctx.RECIBOSPAGO_DETALLE_GENERAL select new { r.idrecibopago,...
asked by 27.03.2017 / 19:11
2
answers

Doubt when validating CheckBox that dynamically creates

I have a project in Xamarin and through this code, dynamically generate more than one CheckBox if (Lista != null && Lista.Count > 0) { LayoutParams lp = new LayoutParams(LayoutParams.MatchParent, LayoutParams.WrapContent);...
asked by 04.04.2017 / 13:42
2
answers

I need a closed condition in the last element of the array

It is a sum of derivatives, and the sign " + " is added every time it is solved. But in the last element you do not have to add the sign " + ". Please, help with that.     
asked by 06.04.2017 / 00:53
1
answer

How can I manipulate margins in C # dynamically?

I would like to know how to give margins to the pictureBox in C #, I currently have this code: posX = posX + 100; PictureBox pic = new PictureBox(); pic.Location = new Point(posX, 50); pic.Name = "pic" + z; pic.Size = new S...
asked by 05.04.2017 / 20:40