Questions tagged as 'c#'

0
answers

How do I get my App to receive notification even closed or blocked

If I lock the cell's screen and leave the App open, I receive Notifications, but if I close the App I can not receive any more. The problem that when it started working, it was getting in every situation and it suddenly did not work anymore. I'm...
asked by 29.09.2017 / 19:05
1
answer

Integration between Console Application, WebService and Frontend Web C #

I'm developing my CBT and I need guidance on how best to do some parts of the system. Description: It is a system for optimizing the use of laboratories. Such a system should have web frontend on the client side and a web service on...
asked by 30.09.2017 / 02:15
1
answer

Consuming SOAP12 NF-e UF BA

Good follows the code, in the end put the error note the same code works for the GO state (Goiás) static void Main(string[] args) { try { var req = new RequestWS(); var xmlDocument = new XmlDocumen...
asked by 29.09.2017 / 15:47
1
answer

Stock quantity management

Personal I'm trying to do a stock control, my idea is when I consume a product it changes in the table. Ex: Estoque: Produto / Quant Caneta /5 Papel / 10 Lapis / 20 But when I separate these items for some segments in the company Segme...
asked by 28.09.2017 / 21:37
1
answer

Write CSV file in certain line passed by parameter C #

How to write to a CSV file, in a certain line that I will receive by parameter, example of the beginning of the code: public void EscreverCSV(string caminho, int linha, string mensagemErro) { using (StreamWriter wt = new StreamWr...
asked by 03.10.2017 / 16:21
1
answer

Pass Value of the ComboBox to Parameter

I am developing a solution in C # Windows forms and am having doubts on how to get one of the options in my combo box that is activated when a checked is clicked. This Combo has the option of yes and no, but when I pass it to the parameter t...
asked by 03.10.2017 / 15:30
1
answer

Variable error in identity

Good afternoon guys, I'm supporting a project of my company, which is using identity config. In this I added a deleted call variable in my database and gave an update-database and updated the database with this new variable, but when I start...
asked by 09.10.2017 / 21:37
1
answer

Change PrimaryKey EntityFramework

How to change a primary key using EntityFramework? I have a table with simple PK and need to change this PK through EntityFramework.     
asked by 27.09.2017 / 13:33
1
answer

Accessing MySQL with C #

I am creating a simple Form that has 3 TextBoxes and 3 buttons and I want to save the information entered in Textboxes in a table. I have already created querys all within a class acessoBD , but I can not acc...
asked by 24.09.2015 / 03:00
0
answers

Open contextmenustrip when you right-click the items displayed in the listbox

I tried this way: private void listBox1_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { contextMenuStrip1.Show(listBox1.PointToScreen(new Point(e.X, e.Y))); } }...
asked by 01.10.2017 / 16:24