Click here to Skip to main content
15,848,724 members
Home / Discussions / C#
   

C#

 
AnswerRe: Linq TO SQL DistinctBy Question Pin
Richard Deeming23-Jun-22 23:43
mveRichard Deeming23-Jun-22 23:43 
QuestionDrawing with c# Pin
Member 1557095223-Jun-22 0:08
Member 1557095223-Jun-22 0:08 
AnswerRe: Drawing with c# Pin
Richard Deeming23-Jun-22 0:55
mveRichard Deeming23-Jun-22 0:55 
GeneralRe: Drawing with c# Pin
Member 1557095223-Jun-22 1:08
Member 1557095223-Jun-22 1:08 
GeneralRe: Drawing with c# Pin
Richard Deeming23-Jun-22 1:42
mveRichard Deeming23-Jun-22 1:42 
AnswerRe: Drawing with c# Pin
Gerry Schmitz23-Jun-22 4:09
mveGerry Schmitz23-Jun-22 4:09 
AnswerRe: Drawing with c# Pin
OriginalGriff23-Jun-22 4:59
mveOriginalGriff23-Jun-22 4:59 
AnswerRe: Drawing with c# Pin
Member 1557095223-Jun-22 22:16
Member 1557095223-Jun-22 22:16 
2yvdecv.jpg[^]
I designed the form you see in the picture and I list the files in the file path I specified in the Listbox. It needs to read the content of the file with Streamreader and draw a picture in the picturebox accordingly. I'm reading the file but I can't draw the picture.
C#
DirectoryInfo dir = new DirectoryInfo(@"C:\\Users\\BS\Desktop\\Yeni_klasör");
       
            DirectoryInfo[] dirs = dir.GetDirectories();
            FileInfo[] files = dir.GetFiles();
            foreach (FileInfo file in files)
            {
                listBox1.Items.AddRange(files);
            }


C#
StreamReader str = new StreamReader(listBox1.SelectedItem.ToString());
          string satir;
          List<string> veriler2 = new List<string>();
          while ((satir = str.ReadLine()) != null)
          {
              veriler2.Add(satir);

          }


I have a code block like this. I want it to read the numbers in the txt file and draw a picture in millimeters accordingly. Can you help me please?
GeneralRe: Drawing with c# Pin
Richard Deeming23-Jun-22 23:24
mveRichard Deeming23-Jun-22 23:24 
GeneralRe: Drawing with c# Pin
Member 1557095224-Jun-22 0:20
Member 1557095224-Jun-22 0:20 
GeneralRe: Drawing with c# Pin
Victor Nijegorodov24-Jun-22 6:54
Victor Nijegorodov24-Jun-22 6:54 
GeneralRe: Drawing with c# Pin
Dave Kreskowiak24-Jun-22 6:58
mveDave Kreskowiak24-Jun-22 6:58 
GeneralMessage Closed Pin
24-Jun-22 16:28
professionalKevin Marois24-Jun-22 16:28 
GeneralRe: Drawing with c# Pin
trønderen24-Jun-22 18:02
trønderen24-Jun-22 18:02 
QuestionSimple Paint app in winforms Pin
Aafaan_Jii21-Jun-22 0:19
Aafaan_Jii21-Jun-22 0:19 
AnswerRe: Simple Paint app in winforms Pin
OriginalGriff21-Jun-22 0:40
mveOriginalGriff21-Jun-22 0:40 
AnswerRe: Simple Paint app in winforms Pin
Pete O'Hanlon21-Jun-22 3:18
subeditorPete O'Hanlon21-Jun-22 3:18 
AnswerRe: Simple Paint app in winforms Pin
Dave Kreskowiak21-Jun-22 5:39
mveDave Kreskowiak21-Jun-22 5:39 
AnswerRe: Simple Paint app in winforms Pin
Gerry Schmitz21-Jun-22 5:45
mveGerry Schmitz21-Jun-22 5:45 
QuestionHTML Input Controls Value Pin
Member 1431490219-Jun-22 19:46
Member 1431490219-Jun-22 19:46 
AnswerRe: HTML Input Controls Value Pin
OriginalGriff19-Jun-22 20:32
mveOriginalGriff19-Jun-22 20:32 
GeneralRe: HTML Input Controls Value Pin
Member 1431490219-Jun-22 20:47
Member 1431490219-Jun-22 20:47 
GeneralRe: HTML Input Controls Value Pin
Richard Deeming19-Jun-22 22:38
mveRichard Deeming19-Jun-22 22:38 
GeneralRe: HTML Input Controls Value Pin
OriginalGriff19-Jun-22 22:51
mveOriginalGriff19-Jun-22 22:51 
GeneralRe: HTML Input Controls Value Pin
Dave Kreskowiak20-Jun-22 4:49
mveDave Kreskowiak20-Jun-22 4:49 

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.