Click here to Skip to main content
11,486,466 members (76,722 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows C#4.0 Application GUI , +
I want to make a simple winform application that displays data stored as .txt (or maybe even as a database and display it as a graph)..
I want to make a C# winform application for this and have little prior development experience...
How can this be done.. ???
Posted 14-Jan-13 2:08am
Comments
suramrit at 14-Jan-13 7:42am
   
The chart control.. :P
suramrit at 14-Jan-13 7:43am
   
But How can I get it to display data stored as a .txt file????

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

use the stream reader class use this in formload

try
            {
                StreamReader sr = new StreamReader(@"C:\Users\Vishnu\Desktop\hind.txt");
 
                    String txtread;
                    while ((txtread = sr.ReadToEnd()) != null)
                    {
 

                TextBox1.Text=txtread
 
                       
                    }
            }
            catch (Exception e)
            {
                
 
            }
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 8,819
1 OriginalGriff 8,047
2 Sascha Lefèvre 3,199
3 Maciej Los 2,886
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 14 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100