list<>

  1. rwahdan2023

    Question getting data from db and put into list

    Hi, I have the following code and I need to put them in a list: SqlConnection conn1 = new SqlConnection("Server=(localdb)\\mssqllocaldb;Database=aspnet-ExpenseTracker-63f88f9b-d2f8-444d-a998-9ce2ab1e3f81;Trusted_Connection=True;MultipleActiveResultSets=true"); conn1.Open(); SqlCommand cmd =...
  2. D

    Resolved Problem displaying information in a listBox

    Hello, When I display all the agents in my listBox I get the right number of agents but not the right information. I get the result from the attachment. And here is the code of my function: public static List<Utilisateur> GetTousLesAgents() { List<Utilisateur> ListeUsers =...
  3. M

    Question Summary of all numbers List<>

    Hello, I am new here. I am looking for help / hints. I have code to write that counts articles. After entering the code starting with A, do not count the tax, for B it is 8%, for the other codes 23% of the tax (I already have it), but I have a problem summing up these amounts, and the...
  4. M

    Complex list

    Dear C# Experts, I apologize for asking a trivial question. Please, bear with me. I am a beginner with C#. I have to use Varian ESAPi and Velocity API. Both such libraries are programmable in C# with Visual Studio, In the following, I am describing my first hurdle in the hope that someone...
  5. Alexander Freyr

    Resolved Why can't you supply the array to a List<>?

    Since List<> is just a wrapper around an array why can't I supply the array through the constructor? It only allows a collection which is relatively expensive opposed to just handing it an array directly.
  6. Socarsky

    Convert a List<object> to a string[,] 2D array

    I am in a difficulty to convert a List that is class object which populated from database, so far so good to have that list of object but I need its string[,] (2D) array as converted to apply a method which helps to get an print output. private void dateTimePicker1_ValueChanged(object sender...
  7. Jean101

    Dictionary List<>

    I'm having a hard time storing multiple names and degrees to my dictionary list. Im using a menu so user can add multiple names and degrees but only one name and degree saving to my dictionary list, when I click on my menu Show All Students.
  8. R

    Conceptual help Different classes in a single List<>?

    I'm working on a project using a beaglebone/mono and I want to display inputs, outputs, alarms, etc all on a single datagridview. The problem is that the classes for these are quite different. I could just use separate classes and manually fill the DGV but I was thinking there should be a way to...
Back
Top Bottom