Click here to Skip to main content
15,907,183 members
Home / Discussions / C#
   

C#

 
GeneralGeneric toolbox component [modified] Pin
hain14-Mar-08 5:32
hain14-Mar-08 5:32 
GeneralRe: Generic toolbox component Pin
led mike14-Mar-08 7:26
led mike14-Mar-08 7:26 
GeneralRe: Generic toolbox component Pin
hain14-Mar-08 11:04
hain14-Mar-08 11:04 
GeneralDatabinding on ComboBox Pin
guidoursus14-Mar-08 4:43
guidoursus14-Mar-08 4:43 
GeneralRe: Databinding on ComboBox Pin
Rob Philpott14-Mar-08 4:49
Rob Philpott14-Mar-08 4:49 
GeneralRe: Databinding on ComboBox Pin
Gareth H14-Mar-08 5:24
Gareth H14-Mar-08 5:24 
GeneralRe: Databinding on ComboBox Pin
guidoursus14-Mar-08 5:29
guidoursus14-Mar-08 5:29 
QuestionConsole application with args: Is there a way to pass args from VS when debugging? Pin
Frankidoze14-Mar-08 4:37
Frankidoze14-Mar-08 4:37 
AnswerRe: Console application with args: Is there a way to pass args from VS when debugging? Pin
laserbaronen14-Mar-08 4:39
laserbaronen14-Mar-08 4:39 
AnswerRe: Console application with args: Is there a way to pass args from VS when debugging? Pin
Rob Philpott14-Mar-08 4:39
Rob Philpott14-Mar-08 4:39 
GeneralBusiness entities and unique identifiers. Pin
matbuk14-Mar-08 4:08
matbuk14-Mar-08 4:08 
GeneralRe: Business entities and unique identifiers. Pin
Rob Philpott14-Mar-08 4:23
Rob Philpott14-Mar-08 4:23 
GeneralRe: Business entities and unique identifiers. Pin
matbuk14-Mar-08 4:38
matbuk14-Mar-08 4:38 
GeneralRe: Business entities and unique identifiers. Pin
Rob Philpott14-Mar-08 4:45
Rob Philpott14-Mar-08 4:45 
GeneralRe: Business entities and unique identifiers. Pin
matbuk14-Mar-08 4:50
matbuk14-Mar-08 4:50 
QuestionHow to view PDF in C# (Window forms) Pin
Khaleek Ahmad14-Mar-08 2:11
Khaleek Ahmad14-Mar-08 2:11 
AnswerRe: How to view PDF in C# (Window forms) Pin
C1AllenS14-Mar-08 3:18
C1AllenS14-Mar-08 3:18 
Generalmaintain back the combobox item Pin
angels77714-Mar-08 1:57
angels77714-Mar-08 1:57 
Questionconsole application issue Pin
Pankaj Garg14-Mar-08 1:02
Pankaj Garg14-Mar-08 1:02 
GeneralRe: console application issue Pin
Rob Philpott14-Mar-08 1:15
Rob Philpott14-Mar-08 1:15 
GeneralAvoid file deletion Pin
Tanuja12314-Mar-08 0:14
Tanuja12314-Mar-08 0:14 
GeneralRe: Avoid file deletion Pin
Rob Philpott14-Mar-08 0:25
Rob Philpott14-Mar-08 0:25 
You can't delete an open file (well you might be able to if you fiddle around with permissions enough) so just keep the file open for the duration of your app.

This code:

[STAThread]
static void Main(string[] args)
{
	FileStream fs = File.Open(@"C:\bobbins.txt", FileMode.Open);
	Console.ReadLine();
	fs.Close();
}

Prevents me from deleting the file bobbins.txt until my console app closes.

Regards,
Rob Philpott.

GeneralRe: Avoid file deletion [modified] Pin
Nilesh Hapse14-Mar-08 1:01
Nilesh Hapse14-Mar-08 1:01 
GeneralRe: Avoid file deletion Pin
Rob Philpott14-Mar-08 1:05
Rob Philpott14-Mar-08 1:05 
GeneralRe: Avoid file deletion Pin
Programm3r14-Mar-08 0:29
Programm3r14-Mar-08 0:29 

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.