Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- 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.OleDb;
- namespace StudentForm
- {
- public partial class Form2 : Form
- {
- private OleDbConnection conn;
- private OleDbCommand command;
- private String connParam = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\L12Y12W27\Documents\Database2.accdb";
- public Form2()
- {
- OpenDBConnection();
- InitializeComponent();
- }
- public void OpenDBConnection()
- {
- conn = new OleDbConnection(connParam);
- command = new OleDbCommand();
- }
- public void ClosedDBConnection()
- {
- conn.Close();
- }
- private void Form2_Load(object sender, EventArgs e)
- {
- InitializeComponent();
- DateTime date = DateTime.Now;
- DateTime due = DateTime.Now.AddDays(3);
- label1.Text = date.ToString("M/dd/yy");
- label2.Text = date.ToString("M/dd/yy");
- String one = "1";
- int x = Convert.ToInt32(one);
- double y = Convert.ToDouble("12.5");
- }
- private void cmdCancel_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- private void cmdBorrow_Click(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement