Visual basic 2008 tutorial - How to save username and password

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,679
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 18, 2010

In this video, I show how to save user data in a Visual Basic application. This works even if you reboot your computer, or even unplug your computer completely.
This video is part 1 of a tutorial requested by Leandro1021DX
In the next video, I'll show you how to save your contacts in a mail application, and load them into a listbox

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (theonlinegamers)

  • How can i make so a user can add some text to a list and it will still be there?

  • @MagicalFlump Go into Settings like I showed in the video. Add a new setting (start typing in the empty field at the bottom). Change datatype to string, name to Text. If you want to save the text of a textbox, just type: My.Settings.Text = Textbox1.text (Ofc, replace textbox1 with whatever your textbox is called). When the user opens the program, set the text of textbox1 to My.Settings.Text

  • @theonlinegamers Ok thanks, i need users to save IP addresses so this should work, but lets say i have a richtextbox and when a user writes the IP address in the text box what code do i put in the button to add a new line to the rich text box?

  • @MagicalFlump Let me get this straight: You want the user to be able to click a button to add a new line to the richtextbox? Depending a bit on what version you have, here it is in 2008 express edition:

    RichTextBox1.Text += vbNewLine

  • @theonlinegamers yeah thats it but i want to be able to add the new IP address to the new line

  • @MagicalFlump If RichTextBox1.Text = some IP address, then do this:

    RichTextBox1.Text = vbNewline & RichTextBox1.Text

    Before:

    Some IP Address

    After:

    EMPTY LINE

    Same IP address

see all

All Comments (15)

Sign In or Sign Up now to post a comment!
  • great tutorial, man. thank you!

  • as I can do that, instead of saving what is written in the textbox, save an image ,???

    

  • do you know how i would make it remember the login not like this video?

    Please answer

  • Hi is there way to make my program remember the checkbox has been checked ? if yea how to do ... sorry my eng is bad

  • @theonlinegamers i worked but when i try to add a new one it gets rid of the other i want it to add it to a list if thats possible

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more