For your first question, instead of using
MessageBox.Show(sr.ReadToEnd());
you would have to use :
textBox.Text = sr.ReadToEnd();
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.
openFileDialoge in lexical analyzer c#
-
18-10-2022 - |
Pergunta
Asslamu Alikom ..
lexical analyzer in c# . want to open file from computer to analyzing it when press "read file button",
this is the code :-
it showed to me the file ,, but I want it inside the form "white space in center" , not outside like this
secondly,, when I press symbol table " it organized line by line" ,,, how i can make it in table ?
" here the description "
thank guys ^_^
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow