Click here to Skip to main content
15,909,829 members
Home / Discussions / C#
   

C#

 
GeneralProblem in Return DataReader from a ServicedComponent object Pin
kianboo17-Jan-05 18:28
kianboo17-Jan-05 18:28 
QuestionCan asp.net use C++ DLL through C#? Pin
webdevelopex17-Jan-05 18:05
webdevelopex17-Jan-05 18:05 
AnswerRe: Can asp.net use C++ DLL through C#? Pin
Christian Graus17-Jan-05 21:27
protectorChristian Graus17-Jan-05 21:27 
GeneralRe: Can asp.net use C++ DLL through C#? Pin
webdevelopex17-Jan-05 22:43
webdevelopex17-Jan-05 22:43 
GeneralRe: Can asp.net use C++ DLL through C#? Pin
Nick Parker18-Jan-05 3:45
protectorNick Parker18-Jan-05 3:45 
GeneralRe: Can asp.net use C++ DLL through C#? Pin
Heath Stewart18-Jan-05 5:50
protectorHeath Stewart18-Jan-05 5:50 
GeneralGraphics files stumper... Pin
new_phoenix17-Jan-05 16:12
new_phoenix17-Jan-05 16:12 
GeneralRe: Graphics files stumper... Pin
cobyjone17-Jan-05 16:21
cobyjone17-Jan-05 16:21 
You could change the attributes on the file to make it a system and hidden file when you are not using it. Users shouldn't even be able to see the file then. Then, when you need to change the file, just remove the attributes(if that is necessary, you may just be able to edit the file without removing the attributes) and put them back after your done.

System.IO.FileInfo file = new System.IO.FileInfo(fileName);
if ((file.Attributes & System.IO.FileAttributes.Hidden) != 1) {
file.Attributes &= System.IO.FileAttributes.Hidden;
}
if ((file.Attributes & System.IO.FileAttributes.System) != 1) {
file.Attributes &= System.IO.FileAttributes.System;
}
//Modify File
file.Attributes |= System.IO.FileAttributes.Hidden;
file.Attributes |= System.IO.FileAttributes.System;
GeneralRe: Graphics files stumper... Pin
new_phoenix24-Jan-05 10:40
new_phoenix24-Jan-05 10:40 
GeneralRe: Graphics files stumper... Pin
Christian Graus17-Jan-05 17:24
protectorChristian Graus17-Jan-05 17:24 
GeneralRe: Graphics files stumper... Pin
new_phoenix18-Jan-05 6:15
new_phoenix18-Jan-05 6:15 
GeneralRe: Graphics files stumper... Pin
Christian Graus18-Jan-05 8:41
protectorChristian Graus18-Jan-05 8:41 
GeneralRe: Graphics files stumper... Pin
Corinna John17-Jan-05 19:53
Corinna John17-Jan-05 19:53 
GeneralRe: Graphics files stumper... Pin
new_phoenix18-Jan-05 6:31
new_phoenix18-Jan-05 6:31 
GeneralRe: Graphics files stumper... Pin
Skynyrd18-Jan-05 10:25
Skynyrd18-Jan-05 10:25 
GeneralRe: Graphics files stumper... Pin
Corinna John19-Jan-05 19:44
Corinna John19-Jan-05 19:44 
Generalunsorted column schema Pin
paulb17-Jan-05 16:10
paulb17-Jan-05 16:10 
GeneralDetect sender page Pin
ABBASI_RA17-Jan-05 15:35
ABBASI_RA17-Jan-05 15:35 
GeneralRe: Detect sender page Pin
Stefan Troschuetz18-Jan-05 0:21
Stefan Troschuetz18-Jan-05 0:21 
Generaldatagrid lookup field Pin
ABBASI_RA17-Jan-05 15:33
ABBASI_RA17-Jan-05 15:33 
GeneralExcel database for C# Pin
Syasya Mortensen17-Jan-05 14:06
Syasya Mortensen17-Jan-05 14:06 
GeneralRe: Excel database for C# Pin
Christian Graus17-Jan-05 15:55
protectorChristian Graus17-Jan-05 15:55 
GeneralRe: Excel database for C# Pin
Syasya Mortensen17-Jan-05 16:22
Syasya Mortensen17-Jan-05 16:22 
GeneralRe: Excel database for C# Pin
Rob Graham17-Jan-05 17:02
Rob Graham17-Jan-05 17:02 
GeneralRe: Excel database for C# Pin
Syasya Mortensen25-Jan-05 13:59
Syasya Mortensen25-Jan-05 13: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.