Questions tagged as 'c#'

2
answers

Tool to generate little

I have a postgres database with several tables and I need to generate their classes. Is there any free tool that manages the few to be used with EF6? I searched but did not find it. I am using VS2015 and postgres latest version.     
asked by 17.08.2017 / 01:02
1
answer

How to increment a string variable c # [duplicate]

I have been developing a new application in fact I need to increment the variable public string malcoins = "0"; Good to start, I will not be able to get the whole code because it is very large and here I only accept a certain number of ch...
asked by 21.07.2017 / 21:00
1
answer

C # Visual Studio unknown build error

I was refactoring my code in C # that was working perfectly, but it was gigantic, and it stopped working and visual studio does not describe the error in any corner. Below is my code and Visual Studio. Visual Studio Console PrintScreen Tic...
asked by 21.07.2017 / 19:08
2
answers

Non-fiscal thermal printer EPSON does not work in a shared way with USB and LPT

I'm creating a system in PHP and we're entering the printing phase with non-fiscal thermal printers. In principle I did not find Epson support for PHP printing and in searches I found the component mike42 / escpos-php . Using it I got networked...
asked by 10.06.2017 / 01:11
2
answers

How to use and what is the timer function in C #?

//Exemplo de uso(Que não entendi): using System; using System.Threading; public static class Program { public static void Main() { // Create a Timer object that knows to call our TimerCallback // method once every 2000 millisecon...
asked by 10.06.2017 / 13:52
1
answer

How to insert command key in C #

Someone could help me, I wanted to create a command with the keys CTRL + Z or something like that to save, edit or send data as a shortcut to a button created in Form .     
asked by 30.06.2017 / 19:05
1
answer

Check for list records in the entity framework

I have the following code: var ret = Monitoramento.List .Include(p => p.CD) .ThenInclude(p => p.CargaEntrega) .ThenInclude(p => p.CargaEntrega.Motorista) .ThenInclude(p => p.CargaEntr...
asked by 13.07.2017 / 16:50
1
answer

After login, how to pass value to the view

After logging in, the user is directed to the page Home and on this page, I would like to show a Label with the client code that this user belongs to. So I went to the AspNetUsers table and added a column called Cod_Cl...
asked by 11.07.2017 / 17:04
1
answer

How to select a string in resx (internationalization) without using the static method

I have .resx files where I keep strings in English and Portuguese, in my database I have the following table: AndIwanttochangethedescriptionoftheplansequaltothefirstrecordinthistable: WiththisIcangetthisstring"plano_1" directly from my resource...
asked by 03.07.2017 / 16:31
1
answer

Data from a DataGridView configured on another Form

I have Form1 that has a dataGridView and a button to add content to this Grid. When I select this button, I call the Form2 that has 2 TextBox and a ComboBox to fill in the Name, Directory, and Format (for example) in addition to a O...
asked by 04.07.2017 / 02:33