Questions tagged as 'c#'

1
answer

How to save in Geometry data type SQL Server from Visual Studio?

Good morning ... I have a defined table (SQL Server 2012) as well; CREATE TABLE cliente( id [int] IDENTITY(1,1) NOT NULL, codigo [varchar](10) NOT NULL, nombre [varchar](100) NOT NULL, apellidos [varchar](100) NOT NULL, direccion [varchar...
asked by 09.08.2017 / 04:02
0
answers

c # How to change the way you navigate with the arrow keys on a vertical MenuStrip?

My question is about a MenuStrip, I have one in my winforms application, it has dock = left and LayoutStyle = VerticalStackWithOverflow , so it looks like this more or less: In my case it has 7 options and an image about each text, crea...
asked by 22.08.2017 / 05:06
1
answer

Obtain controller object in the view

as I do to obtain and manipulate an object that returned with the view from the controller. this is the code public ActionResult CargarDiesel(int id) { var equipo = (from eq in db.equipos join cd in db.cargasD...
asked by 21.08.2017 / 19:43
1
answer

error can not transform a DBNULL object

I'm doing an application where I fill gridview with a query SQL , but when wanting to register more information in gridview I get the following error:    You can not transform a DBNULL object into other types. My code...
asked by 25.07.2017 / 08:06
1
answer

How to identify duplicate values in gridView

I am loading a GridView with several records from the form, a field is E-mail, at the end of the process I send an email to the addresses added in that column. The problem is that the E-mail field is usually repeated, so the mail is sent as many...
asked by 22.07.2017 / 19:23
1
answer

How do I execute two events at the same time?

I am developing a game which is for 2 players, in which two picture boxes must move if the W or S key is pressed, a PictureBox moves, and if you press the Up key or the Down key the other pictureBox should move, but both must react at the same t...
asked by 11.07.2017 / 04:44
0
answers

How to generate a report whose content is repeated elements?

Good day, I am generating a report and I want to print barcode of several products. Assuming I have 5 products and each one I want to print a certain amount of codes (bars) on a sheet or what comes out (see attached) I want to send the quanti...
asked by 10.09.2017 / 05:50
0
answers

Avoid repeated ID's

I am dynamically generating buttons but when clicking on a button, and clicking on another one and again on the first one I clicked on (I hope to have explained it) it throws an error and tells me that multiple controls have been found with the...
asked by 10.07.2017 / 13:56
0
answers

Html duplicated with wkhtmltopdf

I am implementing an HTML to PDF conversion with wkhtmltopdf , I have two problems: I do not respect the HTML styles The main one and more, he is putting the content to me many times. Deputy code: Process process; ProcessStartInfo pr...
asked by 20.07.2017 / 19:14
0
answers

Create separators in graphics [closed]

Create a graph in C # that every second more data is added, it was done with Windows forms in C #. I would like to add a brand, a line that marks a second that I indicated with a button, similar to the separator of the books that is a m...
asked by 20.07.2017 / 20:17