Questions tagged as '.net'

1
answer

Find an object in a List where 2 equal objects do not have the same instance

I'm wanting to fill a comboBox with a series of Matters but I do not want it to be repeated. What I do is go through courses already filtered for the student that contain a subject id. listaCursos = curlog.GetAllFiltrados(); foreach (C...
asked by 12.10.2018 / 15:05
1
answer

Difference when initializing values of a class?

I have a class with too many variables, I need to initialize the values empty depending on the type of data, I see that I can do it in two ways: public class Documento { public Document() { Tipo = ""; Numero = ""; }...
asked by 19.09.2018 / 21:44
2
answers

How to access and edit the properties of the controls contained in a UserControl? C #

I did a userControl that contains a Devexpress grid (DevExpress.XtraGrid.GridControl). What I want to do is access the properties of that grid in a Windows Form. Is there any way to do this? Greetings     
asked by 22.06.2017 / 14:38
2
answers

When I insert data into a SQLite table, it says that the database is blocked

I am creating an application in WPF which inserts in a table of SQLite every login. When you are about to insert: throw this exception: The code of the method to insert is this: public void InsertValuesToDataBase (str...
asked by 04.04.2018 / 18:04
1
answer

How to select and get the value of a cell in WPF?

[I'm pretty new to WPF] I would like to know how I can obtain the value of a cell or several in WPf, I am currently working on a project and I need to be able to select a cell or several cells and obtain their value. Once this is achieved, I...
asked by 05.03.2018 / 14:27
1
answer

How do I access the event clik of a button that is in a User Control from a Form?

I have a UserControl with a button (and several other things, but the important thing here is that button). In execution, for some action, the program places this UserControl in a FlowLayoutPanel of Form , once set thi...
asked by 11.06.2018 / 08:44
1
answer

How to validate textBox so that it accepts point, comma, and only numbers in a textbox?

Today I come with a problem that I have not been able to solve, I have a textbox that should only be able to insert numbers, commas, and points. I have a validation but this validation allows to insert signs of admiration, interrogation, amon...
asked by 21.01.2018 / 17:17
2
answers

Problem 'System.OutOfMemoryException' when loading flat file

I am trying to load a large flat file (250 Mb) in a datatable but after loading a considerable amount of records (4 M), I throw the error 'System.OutOfMemoryException' DataTable listaTX = new DataTable("listaTX");...
asked by 11.01.2018 / 22:38
2
answers

decimal point is lost in the getter and setter

I have a problem with some getter and setter, these are the properties public double PrecioUnitario { get { return _PrecioUnitario; } set { _PrecioUnitario = value; } } private double _SubTotal; public double SubTotal { get { ret...
asked by 04.01.2018 / 05:57
1
answer

How to know if the query is running correctly?

Have a good day, today I come with a problem that I have not been able to solve. I am working with C # .Net and a base in Microsoft Access, I am wanting to do an Update to a table. The problem is that I do not know if I am correctly executing...
asked by 11.01.2018 / 04:29