Questions tagged as 'c#'

1
answer

Error when using Parallel.Foreach

I'm making some improvements in a method, which now takes an average of 19 to 22 seconds to bring the information to VIEW and I saw the possibility of replacing the foreach with Parallel.Foreach. I changed and rolled the code locally and it w...
asked by 23.07.2018 / 21:10
1
answer

Show value of nfe xml tags in columns of datagridview

I'm having a problem because I'm reading the tags from an NFe xml, but I'm not able to show in the columns of the datagridview, my code is reading the correct tags, but it does not see anything in the datagridview. Follow the part of the xml I...
asked by 14.07.2018 / 16:00
0
answers

JQuery.Ajax () in WebForms without static method

Is it possible to execute a void method of codebehind without them being static? I'm having 500 error return when trying.     
asked by 19.07.2018 / 23:53
0
answers

Validate a root certificate C #

I have a signed APK, so I run my script that takes the cert.SF and cert.RSA files inside the APK; in this case I check the keys, etc. My problem is on how to get the root certificate from RSA and do a validation with my root, to see if the strin...
asked by 17.07.2018 / 18:37
0
answers

Deserialize an XML and display its data in an input

I need to create an upload button that when reading the xml of my invoice can display the NFe key that is inside the tag, inside an input. I have already used several methods and are not deseralizing. public void UploadXML(string CHAVE_ACES...
asked by 17.07.2018 / 15:08
1
answer

How to use the Google Maps API on a Windows Form in C #?

I'm having trouble on how to do this. My TCC has a tab where an address appears (Label), where, when clicking, I want the address to appear in Maps. I've already thought about using WebBrowser, but I do not want the user to navigate beyond that...
asked by 17.07.2018 / 02:29
0
answers

Problem with TextBox.Focus (). Repeats SQL when giving focus in field

I have a function that writes some information to a table when exiting a TextBox (Leave). However, when exiting, the focus returns to the first TextBox . When this occurs it directs the focus as it should, but reinsert the row in th...
asked by 12.07.2018 / 05:51
1
answer

Simultaneous insertion of items and sales with C #, Windows Forms and PostgreSQL

Hello, I'm developing a sales screen in C # Windows Forms. I'm just in the beginning of the project, but I came across a situation where I'm not sure what to do. I am using a PostgreSQL database, I created a table called SALE and another ITEMSEN...
asked by 12.07.2018 / 00:46
1
answer

How to put Character Limit in Text (script)

I would like to limit the text that appears to the user ... I use the InputField for the user to write the text, and I make the final text receive InputField text ... (wanted to add ellipses (...) at the end of the text also, indicating conti...
asked by 11.07.2018 / 23:29
0
answers

Synchronize sqlite with an online database

I need to synchronize (one playing information to the other) a sqlite DB with some DB server like sqlserver or mysql, and I would like to know how I can do this, I'm using C # language with visual studio, Thanks Edit: Just to be clearer, I'm...
asked by 11.07.2018 / 20:24