Converting this .NET Upgraded version using the Convert tool to C#..
F = FileSystem.FreeFile() <----------- .NET upgrade "show a VisualBasic.FileSystem when you put the mouse over the text..Need that Converted to C#
The F = Split(LTD, ":") <---- A Requirement in the Text File Username : Password if the StreamReader dosnt see the Semi Colon it produces a Error..Its Reading the Text File and Loading the Username into the listview1,Showing a Offline Icon with the username...When the person press's the login in Button it logs their account into the system...The Text file is used as a Storage for the program to read from for the username and password...
Dim LTD As String, F As Variant, x As Integer
Set Header = ListView1.ColumnHeaders.Add(, , "", 250)
Set Header = ListView1.ColumnHeaders.Add(, , "ClientID's", 1900)
Set Header = ListView1.ColumnHeaders.Add(, , "", 0)
F = FreeFile <--------------------------This giving me Trouble as mentioned Above
With CommonDialog1
.FileName = ""
.DialogTitle = "Load Client List"
.Filter = "All Supported Types|*.txt"
.ShowOpen
If .FileName = "" Then Exit Sub
Open .FileName For Input As #F
While Not EOF(1)
Input #1, LTD<---------------This Line
F = Split(LTD, ":") <-----------------------------And this Line
If x < 1000 Then
Set Item = ListView1.ListItems.Add(, , , , 2)
Item.SubItems(1) = F(0)<----------- F is used here ..The (0) & (1) Represents Small Icons i have
Item.SubItems(2) = F(1)