Peter
Wed Jul 06 12:41:31 CDT 2005
Alex - got it both working !, I didn't know that I just needed the
Streamreader to read back the saved file - thanks again for the usefull
tips
Peter.
"Alex Yakhnin [MVP]" <a.yakhnin@online.att.net> schreef in bericht
news:CB2C4C60-0D58-4BFA-9771-EAD483AB7C12@microsoft.com...
> Just read the content of the file and assign it to the Text property of a
> TextBox.
>
> --
> Alex Yakhnin, .NET CF MVP
> www.intelliprog.com | www.opennetcf.org
>
>
> "Peter" wrote:
>
> > Hello Alex,
> >
> > Thanks for the solution !!
> > I had no clue that it is this complicated to achieve.
> >
> > Maybe to much to ask, but how to put the contents of a textfile into a
> > textbox (multiline)
> >
> > Kind regards,
> >
> > Peter.
> >
> >
> >
> > "Alex Yakhnin [MVP]" <a.yakhnin@online.att.net> schreef in bericht
> > news:CF29DB4E-F4C9-44E5-84E6-F934D283DEDD@microsoft.com...
> > > My apologies. Missed the "multiline".
> > > Check out my blog entry:
> > >
> > >
> >
http://blog.opennetcf.org/ayakhnin/PermaLink.aspx?guid=95c91d31-2ed1-44e0-9cad-ebe4d28f8b2f
> > >
> > > --
> > > Alex Yakhnin, .NET CF MVP
> > > www.intelliprog.com | www.opennetcf.org
> > >
> > >
> > > "Alex Yakhnin [MVP]" wrote:
> > >
> > > > Umm.. something like that:
> > > >
> > > > public void SaveTextBox(TextBox textBox, string fileName)
> > > > {
> > > > using(StreamWriter writer = new StreamWriter(fileName))
> > > > {
> > > > writer.Write(textBox.Text);
> > > > writer.Flush();
> > > > }
> > > >
> > > > }
> > > >
> > > > --
> > > > Alex Yakhnin, .NET CF MVP
> > > > www.intelliprog.com | www.opennetcf.org
> > > >
> > > >
> > > > "Peter" wrote:
> > > >
> > > > > Hello all,
> > > > >
> > > > > Does somebody know's an example how to save a multiline textBox
into a
> > > > > textfile in C# ?
> > > > > I tried to find one on the internet, but couldn't find one, maybe
I'm
> > > > > searching in the wrong direction.
> > > > >
> > > > > If somebody could help me out ?
> > > > >
> > > > > Another question : Is there a little (standard) tool to help me
set
> > up
> > > > > SQLCe databases and tables ?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Peter.
> > > > >
> > > > >
> > > > >
> >
> >
> >