Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: using "this"? Pin
MStanbrook15-Nov-02 4:40
MStanbrook15-Nov-02 4:40 
GeneralRe: using "this"? Pin
Michael Dunn16-Nov-02 5:29
sitebuilderMichael Dunn16-Nov-02 5:29 
AnswerRe: using "this"? Pin
Philip Fitzsimons15-Nov-02 10:55
Philip Fitzsimons15-Nov-02 10:55 
AnswerRe: using "this"? Pin
LongRange.Shooter18-Nov-02 8:54
LongRange.Shooter18-Nov-02 8:54 
GeneralNeed a function that will return certain system information into a text box Pin
Derek Smigelski14-Nov-02 13:20
Derek Smigelski14-Nov-02 13:20 
GeneralRe: Need a function that will return certain system information into a text box Pin
Chris Austin14-Nov-02 17:37
Chris Austin14-Nov-02 17:37 
GeneralRe: Need a function that will return certain system information into a text box Pin
Chris Austin14-Nov-02 18:26
Chris Austin14-Nov-02 18:26 
GeneralMoving VB's FileSystemObject to C# Pin
Eric Miller Jr.14-Nov-02 10:54
sussEric Miller Jr.14-Nov-02 10:54 
I am in the process of moving VB code to C#. However, I have encountered a stumbling block. I have the following code in VB below that uses the Scripting.FileSystemObject and the Scripting.File object. How would I program this property below in C#? Would I use the System.IO.File in place of the Scripting.File object? If so, what would I use for the Scripting.FileSystemObject? Would I open a filestream? If I do, FileSystemObject grabs the whole file, how do I do that using filestreams?

VB Code...

Private mvarFSO As Scripting.FileSystemObject
Private mvarLocalFile As Scripting.File

Public Property Get LocalFile() As Scripting.File
Set mvarLocalFile = Nothing
If mvarFSO.FileExists(mvarMyVSSItem.LocalSpec) Then
Set mvarLocalFile = mvarFSO.GetFile(mvarMyVSSItem.LocalSpec)
End If
Set LocalFile = mvarLocalFile
End Property

C# Translation...

private something_like_FileSystemObject mvarFSO;
private something_like_File_object mvarLocalFile;

public return_type LocalFile
{
get
{
???

return mvarLocalFile;
}
}

Help please, I'm stumped...

Eric
GeneralRe: Moving VB's FileSystemObject to C# Pin
Steven Lyons14-Nov-02 15:07
Steven Lyons14-Nov-02 15:07 
GeneralRe: Just hints! Pin
Masaaki Onishi14-Nov-02 17:46
Masaaki Onishi14-Nov-02 17:46 
GeneralRe: Moving VB's FileSystemObject to C# Pin
Richard Deeming15-Nov-02 0:09
mveRichard Deeming15-Nov-02 0:09 
GeneralRe: Moving VB's FileSystemObject to C# Pin
joan_fl15-Nov-02 9:06
joan_fl15-Nov-02 9:06 
GeneralRe: Moving VB's FileSystemObject to C# Pin
Eric Miller Jr.15-Nov-02 10:46
sussEric Miller Jr.15-Nov-02 10:46 
QuestionScroll a window? Pin
Bog14-Nov-02 9:33
Bog14-Nov-02 9:33 
AnswerRe: Scroll a window? Pin
leppie14-Nov-02 10:53
leppie14-Nov-02 10:53 
AnswerRe: Scroll a window? Pin
leppie14-Nov-02 10:57
leppie14-Nov-02 10:57 
GeneralThanks very much nt Pin
Bog14-Nov-02 12:21
Bog14-Nov-02 12:21 
GeneralFile type association Pin
Le centriste14-Nov-02 9:18
Le centriste14-Nov-02 9:18 
GeneralRe: File type association Pin
Kannan Kalyanaraman14-Nov-02 23:35
Kannan Kalyanaraman14-Nov-02 23:35 
GeneralRe: File type association Pin
Andrew Connell15-Nov-02 5:33
Andrew Connell15-Nov-02 5:33 
Questionscreen pixels per inch? Pin
Marc Clifton14-Nov-02 8:50
mvaMarc Clifton14-Nov-02 8:50 
QuestionDoes exist CodePageEncoding class? Pin
Vasek14-Nov-02 7:10
Vasek14-Nov-02 7:10 
AnswerRe: Does exist CodePageEncoding class? Pin
Daniel Turini14-Nov-02 7:31
Daniel Turini14-Nov-02 7:31 
AnswerRe: Does exist CodePageEncoding class? Pin
leppie14-Nov-02 9:21
leppie14-Nov-02 9:21 
Questionexcel??? Pin
Murdang14-Nov-02 6:45
sussMurdang14-Nov-02 6: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.