Click here to Skip to main content
15,887,676 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to get only time from datetime? Pin
stancrm5-Jul-09 20:56
stancrm5-Jul-09 20:56 
Questionhow to write in excel cells using DataReader if a particular cell is “ReadOnly” using C# Pin
Krishna Aditya5-Jul-09 20:20
Krishna Aditya5-Jul-09 20:20 
AnswerRe: how to write in excel cells using DataReader if a particular cell is “ReadOnly” using C# Pin
dan!sh 5-Jul-09 20:51
professional dan!sh 5-Jul-09 20:51 
GeneralRe: how to write in excel cells using DataReader if a particular cell is “ReadOnly” using C# Pin
Krishna Aditya5-Jul-09 20:57
Krishna Aditya5-Jul-09 20:57 
GeneralRe: how to write in excel cells using DataReader if a particular cell is “ReadOnly” using C# Pin
dan!sh 5-Jul-09 21:10
professional dan!sh 5-Jul-09 21:10 
QuestionC# + MS ACCESS application - daily report problems Pin
daydr3am3r5-Jul-09 19:34
daydr3am3r5-Jul-09 19:34 
Question[Message Deleted] Pin
Bimal's5-Jul-09 19:30
Bimal's5-Jul-09 19:30 
AnswerRe: Making copy of a FILE Pin
Baeltazor5-Jul-09 19:38
Baeltazor5-Jul-09 19:38 
Have you even taken the time to learn any of this yourself? There are tens of thousands of examples on Google and MSDN. Have you even looked there?

At the top of your C# file where the Using directives are, type this (no pasting):

using System.IO;


Now, Assuming you're going to copy that file once a button's been clicked, enter this code into the button's click event:

if( textBox1.Text.Length > 0 )
{
    File.Copy(textBox1.Text, @"DESTINATION\path\GOEShere.txt");
} else MessageBox.Show("Please enter filename");

AnswerRe: Making copy of a FILE Pin
Mycroft Holmes5-Jul-09 19:42
professionalMycroft Holmes5-Jul-09 19:42 
AnswerRe: Making copy of a FILE Pin
himanshu25615-Jul-09 19:44
himanshu25615-Jul-09 19:44 
QuestionFinding usages of classes from a reference in Visual Studio (C#) Pin
Bijesh5-Jul-09 18:42
Bijesh5-Jul-09 18:42 
QuestionLink textbox to postgresql database Pin
daffy_20035-Jul-09 17:03
daffy_20035-Jul-09 17:03 
AnswerRe: Link textbox to postgresql database Pin
dan!sh 5-Jul-09 18:08
professional dan!sh 5-Jul-09 18:08 
QuestionCreating this "Please wait..." window? Pin
SimpleData5-Jul-09 7:49
SimpleData5-Jul-09 7:49 
AnswerRe: Creating this "Please wait..." window? Pin
dan!sh 5-Jul-09 7:59
professional dan!sh 5-Jul-09 7:59 
GeneralRe: Creating this "Please wait..." window? Pin
SimpleData5-Jul-09 8:09
SimpleData5-Jul-09 8:09 
GeneralRe: Creating this "Please wait..." window? Pin
danzar5-Jul-09 8:31
danzar5-Jul-09 8:31 
GeneralRe: Creating this "Please wait..." window? Pin
SimpleData5-Jul-09 8:35
SimpleData5-Jul-09 8:35 
GeneralRe: Creating this "Please wait..." window? Pin
dan!sh 5-Jul-09 8:41
professional dan!sh 5-Jul-09 8:41 
GeneralRe: Creating this "Please wait..." window? Pin
Christian Graus5-Jul-09 14:13
protectorChristian Graus5-Jul-09 14:13 
GeneralRe: Creating this "Please wait..." window? Pin
SimpleData5-Jul-09 22:48
SimpleData5-Jul-09 22:48 
AnswerRe: Creating this "Please wait..." window? Pin
DaveyM695-Jul-09 8:35
professionalDaveyM695-Jul-09 8:35 
GeneralRe: Creating this "Please wait..." window? Pin
SimpleData5-Jul-09 8:37
SimpleData5-Jul-09 8:37 
GeneralRe: Creating this "Please wait..." window? Pin
DaveyM695-Jul-09 8:54
professionalDaveyM695-Jul-09 8:54 
GeneralRe: Creating this "Please wait..." window? Pin
SimpleData5-Jul-09 9:04
SimpleData5-Jul-09 9:04 

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.