Questions tagged as 'c#'

1
answer

Setar comma on a return Json

I'm developing an application in C # with API. It will query and show the result. Very simple thing. But in one of my methods it returns the height of the non-comma face. Come for example like this: 175. Can anyone help me put a comma in the...
asked by 08.04.2017 / 02:14
2
answers

Chekbox with filters

I have a stock query in C # that generates a report with reportviewer. I have a CheckBox that when I click on it it does not show me the items with a zero balance and when I unmark it it shows the items with a zero balance. > Since...
asked by 25.04.2017 / 20:04
1
answer

Error saving data from a form in DB with C #

Is my registration logic right? Because I can not write the fields in the Database, the button code below follows: private void cmdSalvarGuiche_Click_1(object sender, EventArgs e) { if (MessageBox.Show(this, "Deseja realmente Salv...
asked by 10.04.2017 / 20:04
1
answer

How to reference the Assembly in Visual Studio?

I was trying to create an application that connects to a database. But the methods of SqlConnection.Open() , SqlConnection.State and SqlConnection.Close() are with errors all appear the message: The type "Component" is def...
asked by 08.06.2017 / 04:43
1
answer

Extract information from Microsoft CRM Dynamics with C #

I would like to know how I can communicate with Microsoft Dynamics using C #. Example, I have the following table in dynamic and accurate data in my C # application <entity name="contact"> <attribute name="parentcustomerid"/> &l...
asked by 13.06.2017 / 20:25
1
answer

Error inserting MYSQL by data grid view

The code is as follows, I'm doing an insert from the values of a data grid view foreach (DataGridViewRow row in dgvCON.Rows) { MySqlCommand cmd = new MySqlCommand();...
asked by 14.06.2017 / 02:02
2
answers

select name in bank with C #

I'm developing an application in C # windows form in 3 layers. My problem is: I have datagridview to receive the database data and a textbox to be typed the name I want to fetch in the database, but as I'm doing it in 3 layers I'm...
asked by 01.06.2017 / 00:20
1
answer

Attribute type varbinary sql server with C #

This DocumentoPDF column so far was not used by the system: HomeIamnotsurewhattodowiththis:Thisistheerrormessage:"já existe um DataReader aberto associado a este command que deve ser fechado primeiro" The error already occurs...
asked by 07.06.2017 / 03:57
1
answer

Subscribe xml Nfse paulistana

I made a program in C# that signs the XML in batch of the legal note of Porto Alegre. Now the company I work in has opened a branch office in São Paulo and I need to sign the batch XML of the invoice from São Paulo to declare servi...
asked by 08.02.2017 / 15:05
1
answer

doubts C # stack

Good afternoon I followed a toturial on how to make a stack link \ link but my code does not execute 2 3 and 0 follows: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Task...
asked by 14.05.2018 / 02:39