Database Reference
In-Depth Information
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace MLS
{
public partial class Query : Form
{
private int childFormNumber = 0;
public Query()
{
InitializeComponent();
}
private void ShowNewForm(object sender,
EventArgs e)
{
QueryForm childForm = new QueryForm();
childForm.MdiParent = this;
childForm.Dock = DockStyle.Fill;
childForm.Text = “SQL Query”
+ childFormNumber++;
childForm.Show();
}
private void OpenFile(object sender,
EventArgs e)
{
OpenFileDialog openFileDialog = new
OpenFileDialog();
openFileDialog.InitialDirectory = Environment.
GetFolderPath(Environment.SpecialFolder.
Personal);
openFileDialog.Filter = “Text Files (*.txt)|*.
txt|All Files (*.*)|*.*”;
if (openFileDialog.ShowDialog(this) = =
DialogResult.OK)
{
string FileName = openFileDialog.
FileName;
}
}
Search WWH ::




Custom Search