For reading id and password while making orkut related software or any other site related software use below code
FOR ID
If My.Computer.FileSystem.FileExists("id.txt") Then
Dim stream_reader As New IO.StreamReader("id.txt")
ListBox1.Items.AddRange(Split(stream_reader.ReadToEnd, _
vbCrLf))
ListBox1.SelectedIndex = 0
stream_reader.Close()
Else
My.Computer.FileSystem.OpenTextFileWriter("id.txt", True)
MsgBox("The Software has created files required for this Software, please fill required information in them, Then run this program, For now the program is Closing!", MsgBoxStyle.Critical, "Error!")
Me.Close()
End If
FOR PASSWORD
If My.Computer.FileSystem.FileExists("passwd.txt") Then
Dim stream_reader As New IO.StreamReader("passwd.txt")
ListBox2.Items.AddRange(Split(stream_reader.ReadToEnd, _
vbCrLf))
ListBox2.SelectedIndex = 0
stream_reader.Close()
Else
My.Computer.FileSystem.OpenTextFileWriter("passwd.txt", True)
MsgBox("The Software has created files required for this Software, please fill required information in them, Then run this program, For now the program is Closing!", MsgBoxStyle.Critical, "Error!")
Me.Close()
End If
This entry was posted
on Wednesday, June 18, 2008
and is filed under
learn vb .net,
list box,
read from file,
text,
text file,
txt,
vb .net
.
You can leave a response
and follow any responses to this entry through the
Subscribe to:
Post Comments (Atom)
.
Archives
-
▼
2008
(18)
-
▼
June
(18)
- Orkut Profile Maker Without TIMERs
- Source code Status message changer for orkut
- orkut profile maker tutorial
- c# video tutorials
- Create Captcha in Vb .Net
- Orkut Basic terms gid uid tid pid aid etc
- Learn VB .NET easy way Part -1 Tutorial
- C Programming Tutorial (Algorithms)
- C Programming Tutorial Part-1
- Virtual Software Development Guideline
- Javascript Tutorial Part-3
- Javascript Tutorial Part-2
- Javascript Tutorial Part-1
- Orkut Mass Community Joiner
- Simple HTML Editor in VB .NET
- Reading From Text file VB .NET (Text file to Listb...
- Make softwares without timer in VB .NET
- Intro of the blog
-
▼
June
(18)

0 comments