Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. my.settings

my.settings

Scheduled Pinned Locked Moved Visual Basic
data-structureshelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    moonshaddow
    wrote on last edited by
    #1

    i have the code below

    MsgBox(Me.tbtitle.Text)
    My.Settings.ArrayName.Add(Me.tbtitle.Text)

    the "Me.tbtitle.Text" has "moo" in it, but when i do the above value in the settings say that i put a null value in, the msgbx confirms the value "moo" before it add it, also ArrayName is a array list with the scope set to user plz help

    J.Hardy

    D 1 Reply Last reply
    0
    • M moonshaddow

      i have the code below

      MsgBox(Me.tbtitle.Text)
      My.Settings.ArrayName.Add(Me.tbtitle.Text)

      the "Me.tbtitle.Text" has "moo" in it, but when i do the above value in the settings say that i put a null value in, the msgbx confirms the value "moo" before it add it, also ArrayName is a array list with the scope set to user plz help

      J.Hardy

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      This made no sense at all. Are you saying that when this code executes, it's not putting the value of the Text property in the array?? How are you determining this??

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      M 1 Reply Last reply
      0
      • D Dave Kreskowiak

        This made no sense at all. Are you saying that when this code executes, it's not putting the value of the Text property in the array?? How are you determining this??

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        M Offline
        M Offline
        moonshaddow
        wrote on last edited by
        #3

        basically if i put this

        My.Settings.ArrayName.Add("moo")

        it returns: System.NullReferenceException was unhandled Message="Object reference not set to an instance of an object.

        J.Hardy

        M 1 Reply Last reply
        0
        • M moonshaddow

          basically if i put this

          My.Settings.ArrayName.Add("moo")

          it returns: System.NullReferenceException was unhandled Message="Object reference not set to an instance of an object.

          J.Hardy

          M Offline
          M Offline
          moonshaddow
          wrote on last edited by
          #4

          dont worry i fixed it i just had to put

          My.Settings.ArrayName = New ArrayList

          but thanks for your help

          J.Hardy

          modified on Wednesday, March 4, 2009 2:04 AM

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups