Use FileOpen (.net) In C#?

Jun 26, 2011

I'm working on converting this code:

FileOpen(1, Application.StartupPath & "Stub.exe", _
OpenMode.Binary, OpenAccess.Read, OpenShare.Default)

From VB.NET to C#.NET. I've used a series of online converters, and they don't really work for me.

View 3 Replies


ADVERTISEMENT

.net - Fileopen Through The FolderBrowserDialog?

Jun 16, 2010

This is what i got now...

FolderBrowserDialog1.ShowDialog()
TextBox1.Text = FolderBrowserDialog1.SelectedPath
If FolderBrowserDialog1.SelectedPath = Nothing = True Then MsgBox("Select your folder..")
If FolderBrowserDialog1.SelectedPath = Nothing = True Then Button1.Enabled = False
If FolderBrowserDialog1.SelectedPath = Nothing = False Then Button1.Enabled = True
End Sub

[Code]...

View 1 Replies

Use Resources With FileOpen?

Nov 26, 2011

I have some .txt files in the resources of my vb.net project. I am trying to use the command:

FileOpen(1, "FILE NAME", OpenMode.Input)

How do I use my resource location as the file name?

View 11 Replies

Using Resources With FileOpen?

Nov 26, 2011

I have some .txt files in the resources of my vb.net project. I am trying to use the command:

FileOpen(1, "FILE NAME", OpenMode.Input)

How do I use my resource location as the file name?

View 1 Replies

Different Results In .NET And VB6 Using FileOpen Openmode.binary?

Mar 22, 2012

I am trying to convert a VB6 program to vb.net that parses DVD IFO files but using the openmode.binary and InputString is returning different results then it's VB6 counterpart. When I compare the results in the string variable tmpIFOFileIn it is completely different and of course wrong. how to properly convert this VB6 code to vb.net.

vb.net code:

FileOpen(1, ipFileName, OpenMode.Binary, OpenAccess.Read)
tmpIFOFileIn = InputString(1, FileLen(ipFileName))
tmp_i = FileLen(ipFileName)
FileClose(1)

[code]....

View 5 Replies

FileOpen Dialog Box [2008 With 64 Bit Vista]

Jan 13, 2009

I gave my Version of VS and OS in title. Well this is my Coding

[code...]

But i am getting error that Filter string is incorrect. I Stucked in this small thing. I also want a code to get MAC number.

View 11 Replies

FileOpen, And FilePut For A Long Time In .NET?

Apr 1, 2010

I've been using things like FileOpen, and FilePut for a long time in VB.NET, and it's never presented any problems. However in my latest project I'm using CodeDom to compile at runtime, as you know FileOpen, and things like that are the old VB6 methods, such as MsgBox("Msg"), and these don't work. So I need to know how to do this using only the newer VB.NET code.

[Code]...

View 1 Replies

Saving Some Text In A While Using FileOpen Method

Jun 18, 2012

I'm having a problem with saving some text in a while using the FileOpen Method, as shown below. [code]

View 1 Replies

FileOpen Automatic Searching Of Hard Drive To Find File

Mar 28, 2010

I have a program that works I would just like it to be able to find the file with out me specifying the actual path. Because if it is on someone's computer other than mine the path might not be correct and it will not function properly. Here is the code I have done. The file it is looking for is of course names.txt. I have not been able to find much info on this.

[Code]...

View 1 Replies

Wmplib And Vb2010 Express How Get Duration Play Time Mp3 Files Using Fileopen Only

May 2, 2011

I am using wmplib and i like to know a duration time of a lot of files onto a same folder (software for audiobook for low vision persons)

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved