Questions tagged as '.net'

2
answers

Call an attribute from one class to another to make a ValidationResult

I am looking for ways to validate my model with entity framework , and with validationResult I can achieve it, but with only one class, what do you propose to call another class and validate? an attribute of that kind? Example: public IE...
asked by 22.11.2016 / 17:52
2
answers

How to dynamically remove a UserControl in c # .net from the form?

I have a UserControl that is dynamically added to a FlowLayoutPanel . In that same UserControl I have a button to remove itself if the user wants, obviously at runtime. I need to delete it from Form . I tried this but n...
asked by 14.06.2018 / 06:47
1
answer

Empty argument. .Net and SQL

The following function gives me the following error: System.ArgumentNullException: 'El valor no puede ser nulo. Nombre del parámetro: dataTable' I executed the Query, directly in SQL and I had an answer. So I do not understand why it does n...
asked by 05.12.2017 / 15:29
2
answers

Do these types of expressions always remain in memory?

By moving with C # I have found that a new instance can be created without storing it inside an identifier. I understand that these statements only work with classes because of the need to invoke some method within them, but does this instanc...
asked by 03.05.2016 / 14:41
1
answer

What does int mapped int32 or int32 mapped int mean?

Ando watching some tutorials and always say those two words, can someone explain to me what is meant by mapped? , I searched through dictionaries (wordreference.com) among others and I can not understand what they refer to. Thank you very muc...
asked by 18.12.2016 / 00:24
1
answer

Lambda expressions - sum

I'm working with lambda expressions but I have a problem I have this method: public static void Test_LambdaExpresions() { var albums = new List<Album> { new Album { Quantity = 10, Artist = "Betontod", Titl...
asked by 25.09.2018 / 01:32
1
answer

Pass data between different UserControls

I have the following schema mounted in Visual Studio (C # .net) The idea is to be able to bring the data from the Textbox to the UserControl2. I have tried instantiating UserControl1 and changing the level of protection of the Textbox to p...
asked by 02.08.2018 / 19:26
2
answers

C # - create a class that implements IDispose

please collaborate on the following: I have a Class class with N attributes: public class Clase { private string atrib1; private int atrib 2; } I want that when I use the class I can do (I think for a better management of resourc...
asked by 08.03.2017 / 19:49
1
answer

How to generate GS1 Bar Code in .Net Framework 4.0 c # [closed]

I need to generate GS1 barcodes in C # .Net 4.0 Any help would be very helpful.     
asked by 05.01.2016 / 11:01
1
answer

.Net Dll with Web Service in VB6

I pose the following scenario. I have a DLL ( developed in .Net with fwrk 4 ) where one of its functions is to connect to a WebService (Service reference). I have some projects developed in .Net that consume this DLL. I have some pr...
asked by 16.12.2017 / 05:11