My first question is: When you create a new file in the UserAppDataPath location during DEBUG, where is the file created? I looked through the project's locations/folders and could not find the XML file I created with this code.
Now, onto this error.
My xml structure is the standard xml header...
The xml node supports ReadContentAsDateTime method, according to intellisense, but it throws and exception when I use it:
Try
Dim reader As New XmlTextReader(strfilename2)
reader.WhitespaceHandling = WhitespaceHandling.None
While reader.Read()
If reader.NodeType =...
How would I create a registry key at install time that records the date and time of the install so that I can limit the user's use of the app to say 30 or 60 days? Like trial software?
Hello,
I have a BindingNavigator and common controls connected to an Access Database.
When I fill a combo box with state abbreviations, and during runtime select a state and save the record, I want the combo box to clear or go to the first index when the new record button on the...
If I understand, you want to RUN the program on a computer without VB?
If that is the case, you must make the install package ("Publish," in VB.NET nomenclature) and install it on a computer that does not have VB. Make sure the computer has the correct Framework version on it when you go to...
Below is an image of the problem:
http://img92.imageshack.us/img92/9593/treeproblemby7.png
I want the level 2 nodes, below the light blue level 1 node, to be yellow.
Thank you for this help with threads. However, I have run into a problem.
When I run your program and press "Start" it throws an exception saying that the progressbar has been accessed by a thread other than the one it was created on.
Error message:
"Cross-thread operation not valid: Control...
Below is my code.
If reader.GetAttribute("level") = "2" Then
reader.Read()
Dim nd As New TreeNode
nd.Text = reader.ReadString
reader.Read()
nd.Name = reader.ReadString...
Is there a place in the project properties or a feature in ClickOnce that allows you to create a shortcut in a folder such as Startup?
I'm not writing a setup for this program, so is there another way, maybe through ClickOnce, to create a registry?
I guess my problem has just been solved.
Apparently, one has to save the project before running it with the images in the imagelist?
Once I saved the project, which I was reluctant to do because of the crashes, it worked.
Hi thanks for the reply. I hope we can get to the bottom of this and find a solution!
Here is a screen cap of the error. Again, the form is never displayed. And this only happened by adding an Imagelist component and one image.
This person is having the same problem I'm having:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=208272&SiteId=1
WHY DOES THIS HAPPEN?
IS ANYONE ABLE TO USE THE IMAGELIST CONTROL WITHOUT PROBLEMS???
OK, I created a BRAND NEW project.
1) added a treeview and listview to the form
2) added an imagelist to the form
3) added one image to the imagelist
4) did not link the imagelist to a control
5) ran the application. ERROR
The same error occurs. WHY?!
Can one or more of the mods please...
I am trying to use a treeview and imagelist.
I added 3 images to the imagelist.
I have set the treeview's imagelist property to the imagelist I added to the form.
Here is some sample code for when I programmatically add nodes to the treeview.
nd = TreeView1.TopNode.Nodes.Add(""...
I don't have a solid skillset in XML, and when I try to understand how to process (read/write) XML documents/files I get confused.
I have to parse the an XML document that looks like the following:
<?xml version="1.0" encoding="utf-8" ?>
<tree>
<nodeobject level="1">...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.