Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tut] How To Save Settings and Strings in Your Form [Tut]
#8
(03-24-2011, 03:31 AM)cody8295 Wrote: I'm sure this will be helpful to beginners. However, I would like to suggest that you change:

Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        My.Settings.Example = (TextBox1.Text) 'Gets the Value of TB1, Sets the String.
    End Sub

to

Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        My.Settings.Example = TextBox1.Text 'Gets the Value of TB1, Sets the String.
    End Sub


As you do not need the parenthesis.

No one cared about that comment bro, lol. I couldn't careless...
[Image: t5BWm.png]
Reply


Messages In This Thread
RE: [Tut] How To Save Settings and Strings in Your Form [Tut] - by Resistance - 03-26-2011, 11:05 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to hook the keyboard. [VB.NET] [TuT] Vorfin 92 60,893 09-23-2019, 11:55 AM
Last Post: Jamimartin
  Problem in form Chuggaism 3 2,020 11-07-2013, 06:35 PM
Last Post: AceInfinity
  [VB.NET] Animated Form Extend [SRC] Fragma 6 5,537 10-10-2013, 12:18 PM
Last Post: Saket
  [TUT]Creating Advanced Web Browser with Awesome Theme Imaking31 0 1,320 05-25-2013, 03:12 AM
Last Post: Imaking31
  VB.NET Port Scanner [TUT] Fragma 30 14,434 11-27-2012, 11:26 PM
Last Post: ƃu∀ ıʞƃu∀

Forum Jump:


Users browsing this thread: 2 Guest(s)