Click here to Skip to main content
15,881,803 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to preserve DataGridView row and text color when using column filters? Pin
Gerry Schmitz21-Apr-21 6:45
mveGerry Schmitz21-Apr-21 6:45 
GeneralRe: How to preserve DataGridView row and text color when using column filters? Pin
Alex Dunlop21-Apr-21 16:53
Alex Dunlop21-Apr-21 16:53 
GeneralRe: How to preserve DataGridView row and text color when using column filters? Pin
Dave Kreskowiak21-Apr-21 17:27
mveDave Kreskowiak21-Apr-21 17:27 
Questionrecord list access Pin
Frank-Cziryek19-Apr-21 12:16
Frank-Cziryek19-Apr-21 12:16 
AnswerRe: record list access Pin
Dave Kreskowiak19-Apr-21 17:51
mveDave Kreskowiak19-Apr-21 17:51 
GeneralRe: record list access Pin
Frank-Cziryek19-Apr-21 19:43
Frank-Cziryek19-Apr-21 19:43 
GeneralRe: record list access Pin
Pete O'Hanlon20-Apr-21 20:55
mvePete O'Hanlon20-Apr-21 20:55 
Questionc# How to access data in an other object Pin
Frank-Cziryek19-Apr-21 2:29
Frank-Cziryek19-Apr-21 2:29 
Hi thank you for help.
In my modified instance I placed recordlist is a separate class to be able to access it from various classes but access issues occured. please help me to access the record list type thank you.
C#
  <pre>using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections.Generic;

namespace metjelentes
{
    class adatok
    {
        public string telepules = " ";
        public string ido = " ";
        public string szeliranyes_erosseg = " ";
        public int homerseklet = 0;
    }
    class adatlista
    {
        public List<adatok> lista = new List<adatok>();
    }
        class beolvasas
    {        
        public void beolvas()
         {
            string olvas = @"c:\Users\Public\textfiles\tavirathu13.txt";
            using (StreamReader sr =new StreamReader(olvas, Encoding.Default))
                {
                //StreamReader sr = new StreamReader(olvas, Encoding.Default);

                //List<adatok> lista = new List<adatok>();
                int db = 0;
                    while (!sr.EndOfStream)
                        {
                            string sor = sr.ReadLine();
                            string[] elemek = sor.Split(' ');
                            adatlista.lista.Add(new adatok());
                            adatlista.lista[db].telepules=elemek[0];
                            adatlista.lista[db].ido = elemek[1];
                            adatlista.lista[db].szeliranyes_erosseg = elemek[2];
                            adatlista.lista[db].homerseklet = Int32.Parse(elemek[3]);
                            db++;
                        }
                Random rd = new Random();
                int rand_num = rd.Next(1, db);
            }
          }
     }
    /* 
    class felhasznalo
    {
        foreach (string elem  beolvas.lista[])

    }*/
       class Program
        {
            static void Main(string[] args)
            {
                Console.WriteLine("Hello World!");
            }
        }
}


AnswerRe: c# How to access data in an other object Pin
OriginalGriff19-Apr-21 2:58
mveOriginalGriff19-Apr-21 2:58 
Question.net passive mvp implementation w unity novice questions Pin
Romar Nicholas Mandap18-Apr-21 15:26
Romar Nicholas Mandap18-Apr-21 15:26 
QuestionRecordlist in object blocked by error Pin
Frank-Cziryek18-Apr-21 10:57
Frank-Cziryek18-Apr-21 10:57 
AnswerRe: Recordlist in object blocked by error Pin
Mycroft Holmes18-Apr-21 11:25
professionalMycroft Holmes18-Apr-21 11:25 
AnswerRe: Recordlist in object blocked by error Pin
Dave Kreskowiak18-Apr-21 11:34
mveDave Kreskowiak18-Apr-21 11:34 
AnswerRe: Recordlist in object blocked by error Pin
James Curran20-Apr-21 3:37
James Curran20-Apr-21 3:37 
QuestionWhy BeginGetContext of HTTPListener within Window's Service didn't react or trigger? Pin
razzqc16-Apr-21 5:19
razzqc16-Apr-21 5:19 
AnswerRe: Why BeginGetContext of HTTPListener within Window's Service didn't react or trigger? Pin
Gerry Schmitz16-Apr-21 8:37
mveGerry Schmitz16-Apr-21 8:37 
GeneralRe: Why BeginGetContext of HTTPListener within Window's Service didn't react or trigger? Pin
razzqc16-Apr-21 10:06
razzqc16-Apr-21 10:06 
QuestionWhy GC.Collect() call twice required when use GC.WaitForPendingFinalizers() Pin
Mou_kol10-Apr-21 22:06
Mou_kol10-Apr-21 22:06 
AnswerRe: Why GC.Collect() call twice required when use GC.WaitForPendingFinalizers() Pin
OriginalGriff10-Apr-21 22:48
mveOriginalGriff10-Apr-21 22:48 
QuestionC# Unable to update data table values Pin
Mou_kol10-Apr-21 1:34
Mou_kol10-Apr-21 1:34 
AnswerRe: C# Unable to update data table values Pin
OriginalGriff10-Apr-21 2:13
mveOriginalGriff10-Apr-21 2:13 
GeneralRe: C# Unable to update data table values Pin
Mou_kol10-Apr-21 3:04
Mou_kol10-Apr-21 3:04 
GeneralRe: C# Unable to update data table values Pin
Dave Kreskowiak10-Apr-21 4:23
mveDave Kreskowiak10-Apr-21 4:23 
GeneralRe: C# Unable to update data table values Pin
OriginalGriff10-Apr-21 7:57
mveOriginalGriff10-Apr-21 7:57 
GeneralRe: C# Unable to update data table values Pin
OriginalGriff10-Apr-21 8:00
mveOriginalGriff10-Apr-21 8:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.