Question

Asslamu Alikom ..

lexical analyzer in c# . want to open file from computer to analyzing it when press "read file button",

enter image description here

this is the code :-

enter image description here

it showed to me the file ,, but I want it inside the form "white space in center" , not outside like this

enter image description here


2

secondly,, when I press symbol table " it organized line by line" ,,, how i can make it in table ?

" here the description "

enter image description here

thank guys ^_^

Was it helpful?

Solution

  1. For your first question, instead of using

    MessageBox.Show(sr.ReadToEnd());
    

    you would have to use :

    textBox.Text = sr.ReadToEnd();
    
  2. For your second question, it really depends upon the framework that you are working with :

    If you are using WPF, I would recommend WPF Table.

    If you are using WinForms I would recommend DataGridView. See this StackOverflow link.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top