Nevermind, I found the attribute I was looking for.
Here's an example of what I did.
This creates a new column, row, and DataGridTableStyle and puts it into a DataGrid.
Public table1 As New DataTable("rundata")
Public rpmcolumn As DataColumn = New DataColumn("RPM")
when i add the xml file to the deployment, I chose to make it hidden from the properties window.
After it is deployed, I then installed the program onto my PC and everything seemed to work fine. I then installed the program on another PC and I get he error msg.
I figured that hidding the...
And the code I'm using to access the xml file is:
AppExe = Application.StartupPath
xmlfile = New System.Xml.XmlDocument
xmlfile.Load(AppExe & "\myfile.xml")
xmlfilenodelist = xmlfile.SelectNodes("/location")
Dim xmlfilenode As System.Xml.XmlNode
For Each xmlfilenode In xmlfilenodelist...
I've created a deployment. I'm getting an error when trying to write to an xml file. Everything works on my computer. I installed the program onto another computer and i get this error.
Access to path "C:\Program Files\...\myfile.xml" is denied
When I created the deployment, I included...
Can some point me to a webpage or recommend a book for me about the .net deployment.
The problem i'm having is the windows installer package isn't being created when I go through the deployment process. I tried using the wizard, but i'm not familar with all the setup options.
Sorry guys. Looks like the problem fixed itself. I'm able to read the data now. Not sure what was wrong before. Didn't make any changes to the program. It just started working like normal.
Appreciate the help.
Note: If the problem isn't making any sense, reset your computer and try...
Private Sub Test1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim AppExe = Application.StartupPath
Dim xmlLoadTest As System.Xml.XmlDocument = New System.Xml.XmlDocument
'Open config.xml file
xmlLoadTest.Load(AppExe & "\config.xml")
'Get the nodes for...
I'm trying to read data from an XML file with 18 elements. Elements 0 through 12 work fine, but when I try to read element(13) or above I get this error:
An unhandled exception of type 'System.NullReferenceException' occurred in Test1.exe
Additional information: Object reference not set to...
I need to access some xml files but how can I find the location of the xml files have a user has installed my program onto his own PC?
Currently I have written my xmlfile.load() to a specific location, but its not going to work unless the user installs the files on his PC in the same location.
I'm using the setup wizard and trying to deploy a sample application. I'm creating shortcuts in the User's Desktop and in the User's Programs Menu. How do I get the shortcut to specifically open the .exe file. I can set the shortcut target to the Application Folder, which only contains the...