Skip to content

Instantly share code, notes, and snippets.

View SajjadArifGul's full-sized avatar
👨‍💻

Sajjad Gul SajjadArifGul

👨‍💻
View GitHub Profile
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
// The previous mouse location.
private Point OldMousePos = new Point(-1, -1);
#region Includes
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
using System.Text;
using System.Windows.Forms;
try
{
long UserID = Convert.ToInt64(UserIDBox.Text);
/*path to my Database*/
string MyDatabasePath = @"Data Source=.\sqlexpress;Initial Catalog=MyTests;Integrated Security=True";
using (SqlConnection connection = new SqlConnection(MyDatabasePath))
{
connection.Open();
/*path to my Database*/
string MyDatabasePath = @"Data Source=.\sqlexpress;Initial Catalog=MyTests;Integrated Security=True";
using (SqlConnection connection = new SqlConnection(MyDatabasePath))
{
connection.Open();
/*Start a local transaction*/
SqlTransaction sqlTran = connection.BeginTransaction();
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DateTimeFormatsInCSharp
{
class Program
{
static void Main(string[] args)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace factorial
{
class factor
{
public int factorial(int value)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace fibonacci
{
class fibo
{
public int fibonacci(int value)
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 ConvertBytesToKB_MB_GB_TBinCSharp
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using AForge.Video.FFMPEG;
using AForge.Video;
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;
// Include this 3 Libraries