my.settings
-
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
-
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
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 -
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, 2008basically 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
-
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
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