Questions tagged as 'c#'

1
answer

How to handle Zebra printers and labels with C #?

I'm doing a Windows Forms application with C #, but I had a problem, in the application you need to print labels with Zebra brand printers, but I do not understand you very well, what I mean is. If you can manipulate the label from the applicati...
asked by 17.10.2018 / 22:46
1
answer

Compare two DataGridViews in C #

Hello World !, I have a small detail, from a button I am comparing two columns of two datagridviews. What I want to get is: From the DataDridView1 to get all the data that does not exist in DataGridView2 . What I really did is compa...
asked by 06.10.2018 / 17:48
1
answer

Insert values from C # text boxes in (ASP.NET) to SQL Server

Good I am new in the subject for development, work in a project, the code was provided to me, my case is that I have to capture values of 3 text boxes and store them in a database in SQL Server, mainly they are 3 values to store as E-Mail type a...
asked by 04.10.2018 / 17:26
1
answer

Validate if there is a record in a DB table and store in a variable

I am making a query to validate if there is a record in the database, for this I used the following I declare variable decimal serie= 10002;//este valor corresponde a un ejemplo, la variable puede tomar cualquier valor I make the query...
asked by 20.09.2018 / 13:53
1
answer

Take value of a field from an identifier of a table

I have the following instructions with which I intend to obtain a value of a field from an identifier of a table. idFac = Convert.ToDecimal(Request.QueryString["id"]);//Capturo el Id del registro sql.Append("SELECT codigo from factu...
asked by 19.09.2018 / 16:51
2
answers

I get an error with modifying database from C # [closed]

   This is my code but I do not know if there will be any problem with the sentence I have made public void modificar(Int32 cantidad, String producto, String tipo_pedido, Double total) { conexion.operacion("UPDATE pedidos s...
asked by 04.10.2018 / 00:03
1
answer

Using SendGrid V1 and C # how do I delete an email from the lists without knowing the type?

Using SendMail V1 and C # as follows I can know if an email is on the bounces list and I get information: var client = new SendGridClient(this.apiKey); var response = client.RequestAsync(method: SendGridClient.Method.GET, urlPath: "suppressi...
asked by 19.09.2018 / 21:18
2
answers

Random Function Properly [closed]

As I can use the function Random in C # using two functions, the first function is the minimum damage of the player, and the second the maximum damage that a player can do, my idea is to use the function Random , calling to both fun...
asked by 20.09.2018 / 15:34
1
answer

Problem "Unable to copy file" WindowsForms C #

I have a problem, I changed one of the options in the configuration file of my application, more specifically, the section of 32 bits and 64, but then I returned it to normal (The default option: "Any CPU") , and I tried to run my app, but this...
asked by 14.04.2018 / 14:30
1
answer

Eventhandler function

I am building a page (Xamarin, C #, Android), and I have put a button where the definition of the onclick event, forces me to put it as a private EventHandler. The error that throws me is that "not all the code access paths return a value". On t...
asked by 18.04.2018 / 00:53