Invisionsoft
Well-known member
hi i am really stuck with this and its only a small problem.
i want to be able to type .........
dsfsjfjsjjfs in User Box
fjdjskfjds in password box
www.thescripts.com in website box
then i want to have a button which says "save" which then saves the 3 above pieces of text into a notepad file.
So like I said I want to be able to type a login, password and website in the 3 textboxes then click a button which saves it into my .txt file.
Just make any required adjustments to do this. I am really confused with this so any help would be appreciated.
this has really confused me so please help
Code: ( vbnet )
1.
Public Class Form1
Dim Login As String
Dim Password As String
Dim Website As String
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
System.IO.File.WriteAllText("Password.txt", "C:\Documents and Settings\Admin\My Documents\Password.txt")
End Sub
Private Sub AddNewLoginToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddNewLoginToolStripMenuItem.Click
End Sub
End Class
also after i want to have a search box where you type in like www.thescripts into 1 box which then finds you the user name and password for that website.wot would i do here?
if you dont have much time just help me figure out where iam going wrong on the first part then leave the search problem untill you have some time
regards
george
i want to be able to type .........
dsfsjfjsjjfs in User Box
fjdjskfjds in password box
www.thescripts.com in website box
then i want to have a button which says "save" which then saves the 3 above pieces of text into a notepad file.
So like I said I want to be able to type a login, password and website in the 3 textboxes then click a button which saves it into my .txt file.
Just make any required adjustments to do this. I am really confused with this so any help would be appreciated.
this has really confused me so please help
Code: ( vbnet )
1.
Public Class Form1
Dim Login As String
Dim Password As String
Dim Website As String
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
System.IO.File.WriteAllText("Password.txt", "C:\Documents and Settings\Admin\My Documents\Password.txt")
End Sub
Private Sub AddNewLoginToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddNewLoginToolStripMenuItem.Click
End Sub
End Class
also after i want to have a search box where you type in like www.thescripts into 1 box which then finds you the user name and password for that website.wot would i do here?
if you dont have much time just help me figure out where iam going wrong on the first part then leave the search problem untill you have some time
regards
george