Click here to Skip to main content
15,902,114 members
Home / Discussions / C#
   

C#

 
GeneralAlign ColumnHeader Text Pin
zaboboa12-Aug-05 5:44
zaboboa12-Aug-05 5:44 
GeneralRe: Align ColumnHeader Text Pin
ToddHileHoffer12-Aug-05 7:18
ToddHileHoffer12-Aug-05 7:18 
GeneralRe: Align ColumnHeader Text Pin
zaboboa12-Aug-05 7:31
zaboboa12-Aug-05 7:31 
GeneralUser Control event raising Pin
Rizwan Bashir12-Aug-05 5:26
Rizwan Bashir12-Aug-05 5:26 
GeneralPictureBox properties need to help Pin
malak nour12-Aug-05 5:12
malak nour12-Aug-05 5:12 
GeneralRe: PictureBox properties need to help Pin
Libor Tinka12-Aug-05 6:39
Libor Tinka12-Aug-05 6:39 
GeneralRe: PictureBox properties need to help Pin
Kimocat12-Aug-05 6:54
Kimocat12-Aug-05 6:54 
GeneralExport from textbox to external file Pin
Code Toad12-Aug-05 4:48
Code Toad12-Aug-05 4:48 
I am fairly new to C# and am trying to export the text from a multi-line textbox to an external file. I am familiar with SaveFileDialog when exporting the contents of a DataGrid, but am unsure as to how I would assign the textbox data.

Here is what I would have done if I were exporting the data from a C1TrueDBGrid. I am sure that I am just missing something simple Smile | :)

-------------------------------------------------------
protected virtual void Export()
{
System.Windows.Forms.SaveFileDialog saveFileDialog = new SaveFileDialog() ;
saveFileDialog.Filter = "Excel |*.csv|Text|*.txt" ;
saveFileDialog.InitialDirectory = @"C:\" ;
saveFileDialog.OverwritePrompt = true ;
saveFileDialog.FileName = "dbview_" + this.tableName.Replace(" ", "");
saveFileDialog.Title = "Database View for " + this.tableName.TrimEnd() ;
saveFileDialog.ShowDialog() ;

try
{
if (System.IO.File.Exists(saveFileDialog.FileName))
{
System.IO.File.Delete(saveFileDialog.FileName) ;
}
this.c1TrueDBGrid1.ExportToDelimitedFile(saveFileDialog.FileName,
C1.Win.C1TrueDBGrid.RowSelectorEnum.AllRows, ",", "", "", true, "ASCII") ;
System.Diagnostics.Process.Start(saveFileDialog.FileName) ;
}
catch {}
}
GeneralRe: Export from textbox to external file Pin
Guffa12-Aug-05 5:47
Guffa12-Aug-05 5:47 
GeneralRe: Export from textbox to external file Pin
Code Toad12-Aug-05 9:04
Code Toad12-Aug-05 9:04 
GeneralScale and Transform Location Pin
GoodQuestion12-Aug-05 4:42
GoodQuestion12-Aug-05 4:42 
GeneralRe: Scale and Transform Location Pin
Werdna12-Aug-05 9:17
Werdna12-Aug-05 9:17 
GeneralProblem with TapControl Pin
Anonymous12-Aug-05 4:29
Anonymous12-Aug-05 4:29 
GeneralRe: Problem with TapControl Pin
mhmo13-Aug-05 7:32
mhmo13-Aug-05 7:32 
GeneralGet the value of primary key as output parameter... Pin
signbit12-Aug-05 4:25
signbit12-Aug-05 4:25 
GeneralRe: Get the value of primary key as output parameter... Pin
Guffa12-Aug-05 5:25
Guffa12-Aug-05 5:25 
GeneralUserControl interaction Pin
tehe12-Aug-05 3:53
tehe12-Aug-05 3:53 
GeneralRe: UserControl interaction Pin
Libor Tinka12-Aug-05 5:02
Libor Tinka12-Aug-05 5:02 
Generalrecieving UCHAR buffer in C# from C DLL Pin
A T I F12-Aug-05 3:23
A T I F12-Aug-05 3:23 
GeneralMdiChildActivate Pin
bouli12-Aug-05 3:16
bouli12-Aug-05 3:16 
GeneralMasking the TextBox Pin
zaboboa12-Aug-05 3:15
zaboboa12-Aug-05 3:15 
GeneralRe: TextBox Pin
Marshall12-Aug-05 3:53
Marshall12-Aug-05 3:53 
GeneralRe: TextBox Pin
Abymoh12-Aug-05 7:25
Abymoh12-Aug-05 7:25 
GeneralRe: TextBox Pin
zaboboa12-Aug-05 7:28
zaboboa12-Aug-05 7:28 
GeneralMdiParent Question Pin
Jassim Rahma12-Aug-05 2:59
Jassim Rahma12-Aug-05 2:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.