Click here to Skip to main content
15,913,669 members
Home / Discussions / C#
   

C#

 
QuestionRTCP Packet in .net (c# or vb.net) Pin
Saurabh90907-Apr-09 9:11
Saurabh90907-Apr-09 9:11 
QuestionLaunching and Saving an Excel file from Winform Pin
DevWithDoutbs7-Apr-09 8:43
DevWithDoutbs7-Apr-09 8:43 
AnswerRe: Launching and Saving an Excel file from Winform Pin
Rolf Jaeger15-Jun-09 17:25
Rolf Jaeger15-Jun-09 17:25 
QuestionUsing StreamWriter...... Help Guys [modified] Pin
Rajdeep.NET is BACK7-Apr-09 8:32
Rajdeep.NET is BACK7-Apr-09 8:32 
AnswerRe: Using StreamWriter...... Help Guys Pin
behzadcp7-Apr-09 8:40
professionalbehzadcp7-Apr-09 8:40 
GeneralRe: Using StreamWriter...... Help Guys Pin
Rajdeep.NET is BACK7-Apr-09 8:44
Rajdeep.NET is BACK7-Apr-09 8:44 
AnswerRe: Using StreamWriter...... Help Guys Pin
Ashfield7-Apr-09 20:55
Ashfield7-Apr-09 20:55 
GeneralRe: Using StreamWriter...... Help Guys Pin
al3xutzu007-Apr-09 22:45
al3xutzu007-Apr-09 22:45 
Try using this code:

private void btnSave_Click(object sender, EventArgs e)
{
    FileDialog salvareFisier = new SaveFileDialog();
    salvareFisier.Filter = "Text files (*.txt)|*.txt";
    if (salvareFisier.ShowDialog() == DialogResult.OK)
    {
        FileStream fisier = new FileStream(salvareFisier.FileName, FileMode.Create, FileAccess.Write);

            addText(fisier,"your _text _ here ");
            addText(fisier, "\r\n");

        fisier.Close();
    }
    else
        MessageBox.Show("Data has not been saved");
}

public static void addText(FileStream f, string valoare)
{

    byte[] info = UTF8Encoding.Default.GetBytes(valoare);
    f.Write(info, 0, info.Length);
}


Regards,
Alex
Questionadd control to syncfusion gridcontrol Pin
behzadcp7-Apr-09 8:27
professionalbehzadcp7-Apr-09 8:27 
AnswerRe: add control to syncfusion gridcontrol Pin
Judah Gabriel Himango7-Apr-09 19:34
sponsorJudah Gabriel Himango7-Apr-09 19:34 
QuestionBusqueda en un Datagridview Pin
yaguis7-Apr-09 8:07
yaguis7-Apr-09 8:07 
AnswerRe: Busqueda en un Datagridview Pin
Christian Graus7-Apr-09 11:14
protectorChristian Graus7-Apr-09 11:14 
AnswerRe: Busqueda en un Datagridview Pin
Rajdeep.NET is BACK7-Apr-09 20:02
Rajdeep.NET is BACK7-Apr-09 20:02 
AnswerRe: Busqueda en un Datagridview Pin
Blue_Boy7-Apr-09 22:19
Blue_Boy7-Apr-09 22:19 
QuestionFlood Fill in C# Pin
k_crysa7-Apr-09 7:49
k_crysa7-Apr-09 7:49 
AnswerRe: Flood Fill in C# Pin
Thomas Stockwell7-Apr-09 9:22
professionalThomas Stockwell7-Apr-09 9:22 
AnswerRe: Flood Fill in C# Pin
Christian Graus7-Apr-09 11:15
protectorChristian Graus7-Apr-09 11:15 
AnswerRe: Flood Fill in C# Pin
dybs7-Apr-09 19:19
dybs7-Apr-09 19:19 
GeneralNeed Coding advice Pin
al3xutzu007-Apr-09 7:05
al3xutzu007-Apr-09 7:05 
GeneralRe: Need Coding advice Pin
Xmen Real 7-Apr-09 7:29
professional Xmen Real 7-Apr-09 7:29 
QuestionDatagridview comboboxcolumn question Pin
NewToAspDotNet7-Apr-09 7:04
NewToAspDotNet7-Apr-09 7:04 
AnswerRe: Datagridview comboboxcolumn question Pin
al3xutzu007-Apr-09 7:25
al3xutzu007-Apr-09 7:25 
GeneralRe: Datagridview comboboxcolumn question Pin
Xmen Real 7-Apr-09 7:32
professional Xmen Real 7-Apr-09 7:32 
QuestionHow do I disable external memory writing access to a Process? Pin
Fyrecrypts7-Apr-09 6:37
Fyrecrypts7-Apr-09 6:37 
AnswerRe: How do I disable external memory writing access to a Process? Pin
Xmen Real 7-Apr-09 6:49
professional Xmen Real 7-Apr-09 6:49 

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.