Results 1 to 3 of 3
  1. #1
    xFishx's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Michigan
    Posts
    101
    Reputation
    10
    Thanks
    27
    My Mood
    Amused

    Visual basic help

    My.Settings.History.Add(Browser.Url.ToString)
    How come this is not freakin working? I have History as a System.Collections.Specialized.StringCollection and it says "Object reference not set to an instance of an object." What does this mean?
    Never Look At Some Thing The Way It Is; You May Never Achieve It.
    Pain is only weakness leaving the body.

  2. #2
    DawgiiStylz's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Dawg House
    Posts
    7,811
    Reputation
    219
    Thanks
    2,896
    My Mood
    Tired
    Quote Originally Posted by xFishx View Post
    My.Settings.History.Add(Browser.Url.ToString)
    How come this is not freakin working? I have History as a System.Collections.Specialized.StringCollection and it says "Object reference not set to an instance of an object." What does this mean?
    Isn't there a Browser.Domain? or currentdocument or something like that you could use to get the url

  3. #3
    Broderick's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    Basement.
    Posts
    100
    Reputation
    42
    Thanks
    30
    Quote Originally Posted by xFishx View Post
    My.Settings.History.Add(Browser.Url.ToString)
    How come this is not freakin working? I have History as a System.Collections.Specialized.StringCollection and it says "Object reference not set to an instance of an object." What does this mean?
    Did you ever actually instantiate your settings?

    Put something like this in Form_Load:
    Code:
    If My.Settings.History Is Nothing Then
        My.Settings.History = New System.Collections.Specialized.StringCollection()
    End If
    The fish trap exists because of the fish.
    Once you've gotten the fish you can forget the trap.
    The rabbit snare exists because of the rabbit.
    Once you've gotten the rabbit, you can forget the snare.
    Words exist because of meaning.
    Once you've gotten the meaning, you can forget the words.
    Where can I find a man who has forgotten words so I can talk with him?

Similar Threads

  1. Request VISUAL BASIC Help Please
    By HustlaOwnz in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 9
    Last Post: 07-05-2010, 08:31 AM
  2. [RELEASE]Official MPGH Visual Basics Help site (with vBulletin!)
    By Pixie in forum Visual Basic Programming
    Replies: 31
    Last Post: 12-19-2009, 11:47 AM
  3. Visual basic help
    By iHackR in forum WarRock - International Hacks
    Replies: 4
    Last Post: 02-25-2008, 03:48 AM
  4. Visual Basic help?????
    By g36gunner in forum WarRock - International Hacks
    Replies: 3
    Last Post: 11-07-2007, 06:57 PM
  5. visual basics help or vb6
    By josephjboogie3 in forum Visual Basic Programming
    Replies: 2
    Last Post: 11-05-2007, 05:25 AM