Search results

  1. W

    Is there a way to center datagrid columns?

    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") rpmcolumn.DataType =...
  2. W

    Is there a way to center datagrid columns?

    Is there a way to center datagrid columns without having to totally customize each column? I figure there is some kind of .alignment attribute that I'm not finding.
  3. W

    Access to path "C:\Program Files\...\myfile.xml" is denied

    I think I figured it out. I am able to write to the xml files now. Making the xml files hidden seems to prevent the user from writing to the files.
  4. W

    Access to path "C:\Program Files\...\myfile.xml" is denied

    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...
  5. W

    Access to path "C:\Program Files\...\myfile.xml" is denied

    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...
  6. W

    Access to path "C:\Program Files\...\myfile.xml" is denied

    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...
  7. W

    windows installer package not being created

    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. The solution...
  8. W

    Can't read XML data above element(12)

    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...
  9. W

    Can't read XML data above element(12)

    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...
  10. W

    Can't read XML data above element(12)

    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...
  11. W

    how to find a .xml's location after deployment?

    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.
  12. W

    How to set shortcut target to .exe file?

    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...
Top Bottom