Click here to Skip to main content
15,910,234 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to copy a picture??? Pin
CrazyDragon638420-Jan-06 23:23
CrazyDragon638420-Jan-06 23:23 
GeneralRe: How to copy a picture??? Pin
CodyGen21-Jan-06 3:45
CodyGen21-Jan-06 3:45 
Before saving a file to a particular folder, it is a good practice that you check the folder's existence.
Review the following code:

string MyFolderDir = "C:\\MyFolder\\";

if(!Directory.Exists(MyFolderDir )) // if your folder does not exist
{
Directory.Create(MyFolderDir); // create the folder on the specified directory
}


In the "File of Type" dropdown, you just need to specify the text that would appear and the filter. You can separate them using the "|" character. Like this:

openFile.Filter = "Image File (*.gif;*.jpg;*.bmp)|*.gif;*.jpg;*.bmp";

Microsoft KB and other sites such as this have very good articles about File operations. Try exploring. Enjoy! Big Grin | :-D





-- modified at 9:45 Saturday 21st January, 2006
QuestionDataGridViewColumn DefaultCellStyle help Pin
Kasdoffe20-Jan-06 7:59
Kasdoffe20-Jan-06 7:59 
QuestionCalling Visual Basic .net class object in C# Pin
idreesbadshah20-Jan-06 7:33
idreesbadshah20-Jan-06 7:33 
AnswerRe: Calling Visual Basic .net class object in C# Pin
Dave Kreskowiak20-Jan-06 7:39
mveDave Kreskowiak20-Jan-06 7:39 
Questionwhy can't i start/stop separate threads inside of same block? Pin
WetRivrRat20-Jan-06 5:47
WetRivrRat20-Jan-06 5:47 
AnswerRe: why can't i start/stop separate threads inside of same block? Pin
Le centriste20-Jan-06 6:03
Le centriste20-Jan-06 6:03 
AnswerRe: why can't i start/stop separate threads inside of same block? Pin
Dave Kreskowiak20-Jan-06 6:25
mveDave Kreskowiak20-Jan-06 6:25 
GeneralRe: why can't i start/stop separate threads inside of same block? Pin
WetRivrRat20-Jan-06 7:50
WetRivrRat20-Jan-06 7:50 
QuestionError handling - which is preferrable? Pin
Judah Gabriel Himango20-Jan-06 5:25
sponsorJudah Gabriel Himango20-Jan-06 5:25 
AnswerRe: Error handling - which is preferrable? Pin
Colin Angus Mackay20-Jan-06 5:34
Colin Angus Mackay20-Jan-06 5:34 
GeneralRe: Error handling - which is preferrable? Pin
Werdna20-Jan-06 6:14
Werdna20-Jan-06 6:14 
GeneralRe: Error handling - which is preferrable? Pin
Judah Gabriel Himango20-Jan-06 9:56
sponsorJudah Gabriel Himango20-Jan-06 9:56 
QuestiondataGrid & first row selection Pin
moonangel_bio20-Jan-06 5:00
moonangel_bio20-Jan-06 5:00 
AnswerRe: dataGrid & first row selection Pin
CodyGen20-Jan-06 5:42
CodyGen20-Jan-06 5:42 
AnswerRe: dataGrid & first row selection Pin
Drew McGhie20-Jan-06 9:22
Drew McGhie20-Jan-06 9:22 
GeneralRe: dataGrid & first row selection Pin
moonangel_bio21-Jan-06 1:34
moonangel_bio21-Jan-06 1:34 
QuestionClearing the DataTable Pin
dvsr20-Jan-06 4:21
dvsr20-Jan-06 4:21 
QuestionPower Point from C# code Pin
Bested20-Jan-06 2:57
Bested20-Jan-06 2:57 
QuestionHow to use Bass.Net.dll Pin
Divyang Mithaiwala20-Jan-06 2:41
Divyang Mithaiwala20-Jan-06 2:41 
AnswerRe: How to use Bass.Net.dll Pin
Colin Angus Mackay20-Jan-06 5:36
Colin Angus Mackay20-Jan-06 5:36 
GeneralRe: How to use Bass.Net.dll Pin
Divyang Mithaiwala20-Jan-06 6:25
Divyang Mithaiwala20-Jan-06 6:25 
GeneralRe: How to use Bass.Net.dll Pin
Dave Kreskowiak20-Jan-06 7:01
mveDave Kreskowiak20-Jan-06 7:01 
Questiondatagrid out of bound error,Plz help Pin
rudra08320-Jan-06 1:47
rudra08320-Jan-06 1:47 
QuestionDatagrid Selection ,Giving out of bound index error Pin
rudra08320-Jan-06 1:45
rudra08320-Jan-06 1:45 

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.