Questions tagged as 'c#'

1
answer

Error saving data - NullReferenceException: Object reference not set to an instance of an object

I'm trying to save data that pulls a list from an IEnumerable, but when saving always gives the error below. When querying the database, the data was saved correction, but always giving the exception, I already debugged and did not identify the...
asked by 08.08.2018 / 03:10
0
answers

Problem with printer label printing Argox OS-214 Plus C #

The Argox OS-214 Plus printer is cutting barcodes of products with 9 or more digits, making it impossible to read these codes. What can I do to tag these bar codes with 9 or more digits? My template is this: [STX]L H16 D22 10110000059001...
asked by 16.08.2018 / 14:26
1
answer

How to change Reference dll with running application?

I have a project where I need to use a reference with different versions in a single execution, for example: Switch the System.Drawing version 2.0.0 reference to System.Drawing version 1.0.0 Is it possible to do this?     
asked by 16.08.2018 / 18:47
1
answer

C # flowchart component / organization chart

I am making a desktop application for product configuration, having as selection fields several options related to them, eg model, voltage, application ... when selecting each one, the others below are filtered according to what is registered in...
asked by 06.08.2018 / 19:03
1
answer

How do I use the "Math.Max" method in C # without having to create a lot of variables?

I'm trying to solve an exercise that looks like this:    Make an algorithm that reads the height and enrollment of ten students. Show highest student enrollment and lowest student enrollment And my code at the moment looks like this: C...
asked by 05.08.2018 / 03:34
2
answers

Search for images in all subdirectories

I need to search for images in all subdirectories and display them in picturebox , but the code I currently have is only allowed to search in a single folder and not filtered by file types such as *jpg , *png , etc ... Belo...
asked by 03.08.2018 / 12:38
2
answers

Textbox multiline printing only last item [closed]

I'm using TextBoxt Multiline to "cast" the report on the system itself. When printing, however, the following message appears: "System.Windows.Forms.TextBox" and then the given. public Formulário() { InitializeComponent(); } privat...
asked by 03.08.2018 / 13:35
0
answers

SQL - Aligning Column Values to Right

Hello I would like to know if by means of a SQL statement there is some possibility of aligning the column values to the right. Here's an example below that I can do via C #, but I wanted to do the alignment only via T-SQL: C # code that w...
asked by 07.08.2018 / 21:35
1
answer

Upload data from one action to another

I have a Action HttpGet , where this Action gets two parameters, dataInicial , and dataFinal , this generates a report, in the same Action . only I would like to send this data (List) to another screen, where it is...
asked by 01.08.2018 / 22:46
0
answers

Grouping with Lambda, ASP.NET MVC

I have a question here. I have an action that gets two parameters, two dates. this causes a list to be generated, except that in that list, the same item is being repeated. I wanted to be able to do a sum of money. To understand better, the sy...
asked by 03.08.2018 / 21:03