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
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
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
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
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
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
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
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
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
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