Click here to Skip to main content
15,895,656 members
Articles / Programming Languages / C#

XmlStore Part 2: Printing DataGridView Contents

Rate me:
Please Sign up or sign in to vote.
4.71/5 (7 votes)
18 Mar 2007CPOL7 min read 70K   3.4K   51  
A utility to read, edit, encrypt, decrypt, write and print XmlStore files
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace XmlStoreClient
{
    /// <summary>
    /// Simple form to obtain a password from a user
    /// </summary>
    public partial class Form_Password : Form
    {
        private string msPassword = "";

        public string Password
        {
            get { return msPassword; }
            set { msPassword = value; }
        }

        public Form_Password()
        {
            InitializeComponent();
            this.DialogResult = DialogResult.Cancel;
            this.ctlPasswordTBX.Text = this.msPassword;
        }

        private void ctlApplyBTN_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.msPassword = this.ctlPasswordTBX.Text;
            this.Close();
        }

        private void ctlCancelBTN_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
An old dog trying to learn new tricks!

Comments and Discussions