Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // odpre dialog box ze takoj ko kliknem in ko nekaj izberem gre notr v if
- if (openFileDialog1.ShowDialog() == DialogResult.OK)
- {
- // TextReader pac za branje fajla
- TextReader tr = new StreamReader(openFileDialog1.FileName);
- // preberm vse iz fajla
- string vse = tr.ReadToEnd();
- // zaprem text reader
- tr.Close();
- // ustvarm clanek in not vrzem v richtextbox ta string
- Clanek clanek = new Clanek();
- clanek.MdiParent = this;
- // WOOT?
- clanek.Show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement