Post by bobowk on Apr 26, 2016 18:05:02 GMT 10
I have seen the other Awesomium History post but still don't know how to. I'm using a listbox and my.settings.history as system.collection.string. Although, I get this error when I run with the my.settings.add(webcontrol2.source.tostring). My code:
My.Settings.history.Add(WebControl2.Title.ToString & "|" & WebControl2.Source.ToString)
My.Settings.Save()
Here is the error:
An exception of type 'System.NullReferenceException' occurred in WindowsApplication50.exe but was not handled in user code
Additional information: Object reference not set to an instance of an object.
If there is a handler for this exception, the program may be safely continued.
|
|
Post by enzoko on Apr 27, 2016 7:46:49 GMT 10
Try inserting My.Settings.history.Insert(My.Settings.history.Count, WebControl2.Title.ToString & "|" & WebControl2.Source.ToString) My.Settings.Save Hope this help
|
|
Post by Nathan Lecompte on May 2, 2016 23:04:48 GMT 10
Maybe try enabling the .NET Framework from the properties (if you haven't already done so, it's usually enabled by default), worth a try
|
|
Post by Nathan Lecompte on May 2, 2016 23:06:54 GMT 10
From what I can tell from the error, it might be that you're calling this before the WebControl had even received the web-pages' title. Where are you calling this, which specific sub?
|
|
Post by Prezence on May 3, 2016 11:15:59 GMT 10
In the Settings page in VS, does the value box next to History have anything in it? If so, it needs to be initialized because its a Specialized String Collection To do this go to the ... button and enter a random value. Then stuff should show up in the box and then you can erase the value you entered.
Check out our website here. Check out AirBrowse here. Follow us on GitHub here.
|
|