Skip to content

Instantly share code, notes, and snippets.

View SajjadArifGul's full-sized avatar
👨‍💻

Sajjad Gul SajjadArifGul

👨‍💻
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Drawing;
using System.Data;
using System.IO;
using System.Windows.Forms;
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 Microsoft.DirectX.AudioVideoPlayback;
string imageLocation = "";
string cs = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Data\School.mdf;Integrated Security=True";
static SqlConnection con = null;
static SqlCommand cmd = null;
Regex myRegularExpression = new Regex(" \b[A-Z0-9._%-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\b");
public Form1()
{
InitializeComponent();
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;
/* We added following Assemblies in our Project. */
using System.Drawing.Drawing2D;
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;
namespace howto_number_to_words
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace howto_number_to_words
{
static class DoubleExtensions
{
// Convert a double into words.
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.Runtime.InteropServices;
public Form1()
{
InitializeComponent();
frm2 = new Form2(this);
}
namespace WindowsFormsApplication1
{
public partial class Form2 : Form
{
Form1 frm1;
public Form2(Form1 parent)
{
InitializeComponent();
frm1 = parent;
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
//initializing width, height,
int width, height;
//setting values to form's current width & height.
width = this.Width;
height = this.Height;
//accessing & modifying registery at SOFTWARE