<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>About Us</title>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<style>
#imgbannaer img:hover
{
border:5px solid red;
opacity:0.9;
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
#imgbannaer img
{
-webkit-transition: width 2s, height 2s, -webkit-transform 2s;
transition: width 2s, height 2s, transform 2s;
}
</style>
</head>
<body>
<div id="warpper">
<header>
<div style="width:50%;height:200px;float:left">
<img src="../img/logo.png" style="width:250px;height:190px;">
</div>
<div style="width:50%;height:200px;float:left">
<img src="../img/logo2.png" style="width:250px;height:190px;">
</div>
</header>
<nav>
<ul>
<li> <a href="../index.html">HOME </a> </li>
<li> <a href="service.html">SERVICE </a> </li>
<li> <a href="about us.html">ABOUT </a> </li>
<li> <a href="contact.html">CONTACT</a> </li>
<li> <a href="gallery.html">GALLERY</a> </li>
</ul>
</nav>
<section style=" height:auto">
<div id="imgbannaer" style="width:90%;background-color:#FFF; margin:0 auto;margin-top:20px;">
<a href="../img/g1.jpg" target="new">
<img src="../img/g1.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
</a>
<img src="../img/g2.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<img src="../img/g3.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<img src="../img/g4.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<img src="../img/g5.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<br><br>
<img src="../img/g6.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<img src="../img/g7.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<img src="../img/g8.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<img src="../img/g9.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<img src="../img/g10.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<br><br>
<img src="../img/g1.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<img src="../img/g2.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<img src="../img/g3.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<img src="../img/g4.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<img src="../img/g5.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<br><br>
<img src="../img/g6.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<img src="../img/g7.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<img src="../img/g8.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<img src="../img/g9.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
<img src="../img/g10.jpg" width="200px" height="200px" style=" border-radius:20px 50px 20px 50px; box-shadow:5px 5px 5px 5px #0033FF"/>
</div>
</section>
<br><br>
<footer>
<br>
<p style="text-align:center;">Made by : Salmanmasood </p>
</footer>
</div>
</body>
</html>
My Name Is Salman Masood , I am Computer Science &Amp; Maths Graduate from University of Karachi, Pakistan , Teaching Is My Passion and My Aim Is to Deliver All My Knowledge among Those Students Who Can'T Afford Tutors or Expensive Institute Fees. I Will Be Keep Sharing My All Knowledge and Information with You .... Remember Me in Your Prayers !
Wednesday, 18 October 2017
About us page layout
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>About Us</title>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<style>
TD
{
padding:20PX;
}
H3
{ text-align:center;
}
P
{
font-family:'Times New Roman', Times, serif;color:#000; font-size:smaller
}
#profile p
{ text-align:center;
font-family:"Arial Black", Gadget, sans-serif;
}
</style>
</head>
<body>
<div id="warpper">
<header>
<div style="width:50%;height:200px;float:left">
<img src="../img/logo.png" style="width:250px;height:190px;">
</div>
<div style="width:50%;height:200px;float:left">
<img src="../img/logo2.png" style="width:250px;height:190px;">
</div>
</header>
<nav>
<ul>
<li> <a href="../index.html">HOME </a> </li>
<li> <a href="service.html">SERVICE </a> </li>
<li> <a href="about us.html">ABOUT </a> </li>
<li> <a href="contact.html">CONTACT</a> </li>
<li> <a href="gallery.html">GALLERY</a> </li>
</ul>
</nav>
<section style="min-height:500px">
<div style="width:100%;height:250px; background-color:#fff">
<div style="width:70%;height:250px; float:left">
<h1 style="font-style:normal; font-weight:lighter; color:#999; margin-left:50px;">About Company </h1>
<blockquote>
<p style="font-family:'Times New Roman', Times, serif;color:#000; font-size:smaller">Themes and styles also help keep your document coordinated. When you click Design and choose a new Theme, the pictures, charts, and SmartArt graphics change to match your new theme. When you apply styles, your headings change to match the new theme.
Save time in Word with new buttons that show up where you need them. To change the way a picture fits in your document, click it and a button for layout options appears next to it. When you work on a table, click where you want to add a row or a column, and then click the plus sign.
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
To make your document look professionally produced, Word provides header, footer, cover page, and text box designs that complement each other. For example, you can add a matching cover page, header, and sidebar. Click Insert and then choose the elements you want from the different galleries.
</p>
</blockquote>
</div>
<div style="width:30%;height:250px; background-color:green; float:left">
<img src="../img/office.jpg" style="width:100%; height:100%;"/>
</div>
</div>
<div style="width:100%;height:230px; background-color:RGBA(245,246,246,0.7)">
<table>
<tr>
<td>
<h3>WHO WE ARE ?</h3>
<p> Themes and styles also help keep your document coordinated. When you click Design and choose a new Theme, the pictures, charts, and SmartArt graphics change to match your new theme. When you apply styles, your headings change to match the new theme.</p>
</td>
<td>
<h3>WHAT WE DO ? </h3>
<p>Themes and styles also help keep your document coordinated. When you click Design and choose a new Theme, the pictures, charts, and SmartArt graphics change to match your new theme. When you apply styles, your headings change to match the new theme. </p>
</td>
<td>
<h3>OUR SERVICES</h3>
<p>Themes and styles also help keep your document coordinated. When you click Design and choose a new Theme, the pictures, charts, and SmartArt graphics change to match your new theme. When you apply styles, your headings change to match the new theme. </p>
</td>
</tr>
</table>
</div>
<div style="width:100%;height:auto; background-color:white" id="profile">
<h1 style="font-style:normal; font-weight:lighter; color:#999; margin-left:50px;">Meet Our Team </h1>
<table style="margin-left:50px">
<tr>
<td>
<img src="../img/t1.jpg" width="200px" height="200px" /> <br/>
<p>Ms-Meldon </p>
<a href="#"> click here to view profile </a>
</td>
<td>
<img src="../img/t2.jpg" width="200px" height="200px" /> <br/>
<p>Ms-Lissa </p>
<a href="#"> click here to view profile </a>
</td>
<td>
<img src="../img/t3.jpg" width="200px" height="200px" /> <br/>
<p>Mr-James </p>
<a href="#"> click here to view profile </a>
</td>
<td>
<img src="../img/t4.jpg" width="200px" height="200px" /> <br/>
<p>Mr- Thomas </p>
<a href="#"> click here to view profile </a>
</td>
</tr>
</table>
</div>
</section>
<footer>
<br>
<p style="text-align:center; ">Made by : Salmanmasood </p>
</footer>
</div>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<title>About Us</title>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<style>
TD
{
padding:20PX;
}
H3
{ text-align:center;
}
P
{
font-family:'Times New Roman', Times, serif;color:#000; font-size:smaller
}
#profile p
{ text-align:center;
font-family:"Arial Black", Gadget, sans-serif;
}
</style>
</head>
<body>
<div id="warpper">
<header>
<div style="width:50%;height:200px;float:left">
<img src="../img/logo.png" style="width:250px;height:190px;">
</div>
<div style="width:50%;height:200px;float:left">
<img src="../img/logo2.png" style="width:250px;height:190px;">
</div>
</header>
<nav>
<ul>
<li> <a href="../index.html">HOME </a> </li>
<li> <a href="service.html">SERVICE </a> </li>
<li> <a href="about us.html">ABOUT </a> </li>
<li> <a href="contact.html">CONTACT</a> </li>
<li> <a href="gallery.html">GALLERY</a> </li>
</ul>
</nav>
<section style="min-height:500px">
<div style="width:100%;height:250px; background-color:#fff">
<div style="width:70%;height:250px; float:left">
<h1 style="font-style:normal; font-weight:lighter; color:#999; margin-left:50px;">About Company </h1>
<blockquote>
<p style="font-family:'Times New Roman', Times, serif;color:#000; font-size:smaller">Themes and styles also help keep your document coordinated. When you click Design and choose a new Theme, the pictures, charts, and SmartArt graphics change to match your new theme. When you apply styles, your headings change to match the new theme.
Save time in Word with new buttons that show up where you need them. To change the way a picture fits in your document, click it and a button for layout options appears next to it. When you work on a table, click where you want to add a row or a column, and then click the plus sign.
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
To make your document look professionally produced, Word provides header, footer, cover page, and text box designs that complement each other. For example, you can add a matching cover page, header, and sidebar. Click Insert and then choose the elements you want from the different galleries.
</p>
</blockquote>
</div>
<div style="width:30%;height:250px; background-color:green; float:left">
<img src="../img/office.jpg" style="width:100%; height:100%;"/>
</div>
</div>
<div style="width:100%;height:230px; background-color:RGBA(245,246,246,0.7)">
<table>
<tr>
<td>
<h3>WHO WE ARE ?</h3>
<p> Themes and styles also help keep your document coordinated. When you click Design and choose a new Theme, the pictures, charts, and SmartArt graphics change to match your new theme. When you apply styles, your headings change to match the new theme.</p>
</td>
<td>
<h3>WHAT WE DO ? </h3>
<p>Themes and styles also help keep your document coordinated. When you click Design and choose a new Theme, the pictures, charts, and SmartArt graphics change to match your new theme. When you apply styles, your headings change to match the new theme. </p>
</td>
<td>
<h3>OUR SERVICES</h3>
<p>Themes and styles also help keep your document coordinated. When you click Design and choose a new Theme, the pictures, charts, and SmartArt graphics change to match your new theme. When you apply styles, your headings change to match the new theme. </p>
</td>
</tr>
</table>
</div>
<div style="width:100%;height:auto; background-color:white" id="profile">
<h1 style="font-style:normal; font-weight:lighter; color:#999; margin-left:50px;">Meet Our Team </h1>
<table style="margin-left:50px">
<tr>
<td>
<img src="../img/t1.jpg" width="200px" height="200px" /> <br/>
<p>Ms-Meldon </p>
<a href="#"> click here to view profile </a>
</td>
<td>
<img src="../img/t2.jpg" width="200px" height="200px" /> <br/>
<p>Ms-Lissa </p>
<a href="#"> click here to view profile </a>
</td>
<td>
<img src="../img/t3.jpg" width="200px" height="200px" /> <br/>
<p>Mr-James </p>
<a href="#"> click here to view profile </a>
</td>
<td>
<img src="../img/t4.jpg" width="200px" height="200px" /> <br/>
<p>Mr- Thomas </p>
<a href="#"> click here to view profile </a>
</td>
</tr>
</table>
</div>
</section>
<footer>
<br>
<p style="text-align:center; ">Made by : Salmanmasood </p>
</footer>
</div>
</body>
</html>
Tuesday, 17 October 2017
How to make KBC game in C# (part-2/5)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
namespace kbc
{
public partial class QUIZ : Form
{
int[] x = new int[15];
int p = 0;
string ansfromdb, ansselect;
returnclass rc = new returnclass();
int score = 0,qid;
private string connstring = ConfigurationManager.ConnectionStrings["kbc"].ConnectionString;
public QUIZ()
{
InitializeComponent();
}
private void QUIZ_Load(object sender, EventArgs e)
{
// label2.Text = startgame.NAME;
Random r = new Random();
qid= r.Next(3, 17);
x[p] = qid;
displayquestion(qid);
}
private void label3_Click(object sender, EventArgs e)
{
ansselect = label3.Text;
if (ansselect.Equals(ansfromdb))
{
MessageBox.Show("correct ans!");
qid++;
displayquestion(qid);
l1:
Random r = new Random();
int s = r.Next(1, 17);
bool c= search(x, s);
if (c==true)
{
goto l1;
}
else
{
p++;
qid = s;
x[p] = qid;
displayquestion(qid);
}
}
else
{
MessageBox.Show("game over");
}
}
private void label4_Click(object sender, EventArgs e)
{
ansselect = label4.Text;
if (ansselect.Equals(ansfromdb))
{
MessageBox.Show("correct ans!");
qid++;
displayquestion(qid);
l1:
Random r = new Random();
int s = r.Next(1, 17);
bool c = search(x, s);
if (c == true)
{
goto l1;
}
else
{
p++;
qid = s;
x[p] = qid;
displayquestion(qid);
}
}
else
{
MessageBox.Show("game over");
}
}
private void label5_Click(object sender, EventArgs e)
{
ansselect = label5.Text;
if (ansselect.Equals(ansfromdb))
{
MessageBox.Show("correct ans!");
qid++;
displayquestion(qid);
l1:
Random r = new Random();
int s = r.Next(1, 17);
bool c = search(x, s);
if (c == true)
{
goto l1;
}
else
{
p++;
qid = s;
x[p] = qid;
displayquestion(qid);
}
}
else
{
MessageBox.Show("game over");
}
}
private void label6_Click(object sender, EventArgs e)
{
ansselect = label6.Text;
if (ansselect.Equals(ansfromdb))
{
MessageBox.Show("correct ans!");
qid++;
displayquestion(qid);
l1:
Random r = new Random();
int s = r.Next(1, 17);
bool c = search(x, s);
if (c == true)
{
goto l1;
}
else
{
p++;
qid = s;
x[p] = qid;
displayquestion(qid);
}
}
else
{
MessageBox.Show("game over");
}
}
public void displayquestion(int q_id)
{
string sql = "select q_question,q_opA,q_opB,q_opC,q_opD,q_opcORRECT from questions where q_id=" + q_id;
SqlConnection connection = new SqlConnection(connstring);
try
{
connection.Open();
SqlCommand cmd = new SqlCommand(sql, connection);
SqlDataReader reader = cmd.ExecuteReader();
while (reader.Read())
{
label1.Text = reader.GetValue(0).ToString(); //question
label3.Text = reader.GetValue(1).ToString(); //opa
label4.Text = reader.GetValue(2).ToString();//opb
label5.Text = reader.GetValue(3).ToString();//opc
label6.Text = reader.GetValue(4).ToString();//opd
ansfromdb = reader.GetValue(5).ToString();//correct option.........
}
connection.Close();
}
catch (Exception ex)
{
MessageBox.Show("Errro 202");
}
} //method ends....................
public static bool search(int[] x, int s)
{
bool c = false;
for (int i = 0; i < x.Length; i++)
{
if (s == x[i])
{
c = true;
break;
}
}
return c;
} //function of searching.....................
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
namespace kbc
{
public partial class QUIZ : Form
{
int[] x = new int[15];
int p = 0;
string ansfromdb, ansselect;
returnclass rc = new returnclass();
int score = 0,qid;
private string connstring = ConfigurationManager.ConnectionStrings["kbc"].ConnectionString;
public QUIZ()
{
InitializeComponent();
}
private void QUIZ_Load(object sender, EventArgs e)
{
// label2.Text = startgame.NAME;
Random r = new Random();
qid= r.Next(3, 17);
x[p] = qid;
displayquestion(qid);
}
private void label3_Click(object sender, EventArgs e)
{
ansselect = label3.Text;
if (ansselect.Equals(ansfromdb))
{
MessageBox.Show("correct ans!");
qid++;
displayquestion(qid);
l1:
Random r = new Random();
int s = r.Next(1, 17);
bool c= search(x, s);
if (c==true)
{
goto l1;
}
else
{
p++;
qid = s;
x[p] = qid;
displayquestion(qid);
}
}
else
{
MessageBox.Show("game over");
}
}
private void label4_Click(object sender, EventArgs e)
{
ansselect = label4.Text;
if (ansselect.Equals(ansfromdb))
{
MessageBox.Show("correct ans!");
qid++;
displayquestion(qid);
l1:
Random r = new Random();
int s = r.Next(1, 17);
bool c = search(x, s);
if (c == true)
{
goto l1;
}
else
{
p++;
qid = s;
x[p] = qid;
displayquestion(qid);
}
}
else
{
MessageBox.Show("game over");
}
}
private void label5_Click(object sender, EventArgs e)
{
ansselect = label5.Text;
if (ansselect.Equals(ansfromdb))
{
MessageBox.Show("correct ans!");
qid++;
displayquestion(qid);
l1:
Random r = new Random();
int s = r.Next(1, 17);
bool c = search(x, s);
if (c == true)
{
goto l1;
}
else
{
p++;
qid = s;
x[p] = qid;
displayquestion(qid);
}
}
else
{
MessageBox.Show("game over");
}
}
private void label6_Click(object sender, EventArgs e)
{
ansselect = label6.Text;
if (ansselect.Equals(ansfromdb))
{
MessageBox.Show("correct ans!");
qid++;
displayquestion(qid);
l1:
Random r = new Random();
int s = r.Next(1, 17);
bool c = search(x, s);
if (c == true)
{
goto l1;
}
else
{
p++;
qid = s;
x[p] = qid;
displayquestion(qid);
}
}
else
{
MessageBox.Show("game over");
}
}
public void displayquestion(int q_id)
{
string sql = "select q_question,q_opA,q_opB,q_opC,q_opD,q_opcORRECT from questions where q_id=" + q_id;
SqlConnection connection = new SqlConnection(connstring);
try
{
connection.Open();
SqlCommand cmd = new SqlCommand(sql, connection);
SqlDataReader reader = cmd.ExecuteReader();
while (reader.Read())
{
label1.Text = reader.GetValue(0).ToString(); //question
label3.Text = reader.GetValue(1).ToString(); //opa
label4.Text = reader.GetValue(2).ToString();//opb
label5.Text = reader.GetValue(3).ToString();//opc
label6.Text = reader.GetValue(4).ToString();//opd
ansfromdb = reader.GetValue(5).ToString();//correct option.........
}
connection.Close();
}
catch (Exception ex)
{
MessageBox.Show("Errro 202");
}
} //method ends....................
public static bool search(int[] x, int s)
{
bool c = false;
for (int i = 0; i < x.Length; i++)
{
if (s == x[i])
{
c = true;
break;
}
}
return c;
} //function of searching.....................
}
}
Saturday, 14 October 2017
how to change progress bar color
public NewProgressBar()
{
this.SetStyle(ControlStyles.UserPaint, true);
}
protected override void OnPaint(PaintEventArgs e)
{
Rectangle rec = e.ClipRectangle;
rec.Width = (int)(rec.Width * ((double)Value / Maximum)) - 4;
if(ProgressBarRenderer.IsSupported)
ProgressBarRenderer.DrawHorizontalBar(e.Graphics, e.ClipRectangle);
rec.Height = rec.Height - 4;
e.Graphics.FillRectangle(Brushes.Red, 2, 2, rec.Width, rec.Height);
}
{
this.SetStyle(ControlStyles.UserPaint, true);
}
protected override void OnPaint(PaintEventArgs e)
{
Rectangle rec = e.ClipRectangle;
rec.Width = (int)(rec.Width * ((double)Value / Maximum)) - 4;
if(ProgressBarRenderer.IsSupported)
ProgressBarRenderer.DrawHorizontalBar(e.Graphics, e.ClipRectangle);
rec.Height = rec.Height - 4;
e.Graphics.FillRectangle(Brushes.Red, 2, 2, rec.Width, rec.Height);
}
Friday, 13 October 2017
How to make simple and easy Services page of a E-Commerce website in 15 minutes
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>About Us</title>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<style>
table td p
{ font-family:"Comic Sans MS", cursive;
}
td
{
padding:20px;
}
td:hover
{ background-color:rgb(255,190,0);
border:2px solid rgb(255,190,0);
color:white;
}
</style>
</head>
<body>
<div id="warpper">
<header>
<div style="width:50%;height:200px;float:left">
<img src="../img/logo.png" style="width:250px;height:190px;">
</div>
<div style="width:50%;height:200px;float:left">
<img src="../img/logo2.png" style="width:250px;height:190px;">
</div>
</header>
<nav>
<ul>
<li> <a href="../index.html">HOME </a> </li>
<li> <a href="service.html">SERVICE </a> </li>
<li> <a href="about us.html">ABOUT </a> </li>
<li> <a href="contact.html">CONTACT</a> </li>
<li> <a href="gallery.html">GALLERY</a> </li>
</ul>
</nav>
<section style="min-height:500px;margin:0">
<div style="background-color:rgb(2,173,193);width:100%;height:70px; margin:0;">
<br>
<h1 style=" color:white;margin-top:0px; margin-left:20px;"> Services |
<span style="font-size:16px" >
Take A Look What We love To Do </span>
</h1>
</div>
<table ">
<tr>
<td>
<img src="../img/html-5-icon.png" style="width:100px;height:100px; margin-left:120px"/>
<h3 style="text-align:center">Latest Technology</h3>
<p style="text-align:center">
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
</p>
</td>
<td>
<img src="../img/activity_grid21600.png" style="width:100px;height:100px; margin-left:120px"/>
<h3 style="text-align:center">Latest Technology</h3>
<p style="text-align:center">
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
</p>
</td>
<td>
<img src="../img/Document-icon.png" style="width:100px;height:100px; margin-left:120px"/>
<h3 style="text-align:center">Latest Technology</h3>
<p style="text-align:center">
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
</p>
</td>
</tr>
<tr>
<td>
<img src="../img/iPhone-White-Apple-icon.png" style="width:100px;height:100px; margin-left:120px"/>
<h3 style="text-align:center">Latest Technology</h3>
<p style="text-align:center">
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
</p>
</td>
<td>
<img src="../img/wheels-icon.png" style="width:100px;height:100px; margin-left:120px"/>
<h3 style="text-align:center">Latest Technology</h3>
<p style="text-align:center">
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
</p>
</td>
<td>
<img src="../img/Eye-icon.png" style="width:100px;height:100px; margin-left:120px"/>
<h3 style="text-align:center">Latest Technology</h3>
<p style="text-align:center">
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
</p>
</td>
</tr>
</table>
</section>
<footer>
<br>
<p style="text-align:center; ">Made by : Salmanmasood </p>
</footer>
</div>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<title>About Us</title>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<style>
table td p
{ font-family:"Comic Sans MS", cursive;
}
td
{
padding:20px;
}
td:hover
{ background-color:rgb(255,190,0);
border:2px solid rgb(255,190,0);
color:white;
}
</style>
</head>
<body>
<div id="warpper">
<header>
<div style="width:50%;height:200px;float:left">
<img src="../img/logo.png" style="width:250px;height:190px;">
</div>
<div style="width:50%;height:200px;float:left">
<img src="../img/logo2.png" style="width:250px;height:190px;">
</div>
</header>
<nav>
<ul>
<li> <a href="../index.html">HOME </a> </li>
<li> <a href="service.html">SERVICE </a> </li>
<li> <a href="about us.html">ABOUT </a> </li>
<li> <a href="contact.html">CONTACT</a> </li>
<li> <a href="gallery.html">GALLERY</a> </li>
</ul>
</nav>
<section style="min-height:500px;margin:0">
<div style="background-color:rgb(2,173,193);width:100%;height:70px; margin:0;">
<br>
<h1 style=" color:white;margin-top:0px; margin-left:20px;"> Services |
<span style="font-size:16px" >
Take A Look What We love To Do </span>
</h1>
</div>
<table ">
<tr>
<td>
<img src="../img/html-5-icon.png" style="width:100px;height:100px; margin-left:120px"/>
<h3 style="text-align:center">Latest Technology</h3>
<p style="text-align:center">
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
</p>
</td>
<td>
<img src="../img/activity_grid21600.png" style="width:100px;height:100px; margin-left:120px"/>
<h3 style="text-align:center">Latest Technology</h3>
<p style="text-align:center">
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
</p>
</td>
<td>
<img src="../img/Document-icon.png" style="width:100px;height:100px; margin-left:120px"/>
<h3 style="text-align:center">Latest Technology</h3>
<p style="text-align:center">
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
</p>
</td>
</tr>
<tr>
<td>
<img src="../img/iPhone-White-Apple-icon.png" style="width:100px;height:100px; margin-left:120px"/>
<h3 style="text-align:center">Latest Technology</h3>
<p style="text-align:center">
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
</p>
</td>
<td>
<img src="../img/wheels-icon.png" style="width:100px;height:100px; margin-left:120px"/>
<h3 style="text-align:center">Latest Technology</h3>
<p style="text-align:center">
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
</p>
</td>
<td>
<img src="../img/Eye-icon.png" style="width:100px;height:100px; margin-left:120px"/>
<h3 style="text-align:center">Latest Technology</h3>
<p style="text-align:center">
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
</p>
</td>
</tr>
</table>
</section>
<footer>
<br>
<p style="text-align:center; ">Made by : Salmanmasood </p>
</footer>
</div>
</body>
</html>
Thursday, 12 October 2017
Progress Bar in C#
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
int sum = 0;
for (int i = 1; i <= 100; i++)
{
Thread.Sleep(100);
sum = sum + i;
// Calling ReportProgress() method raises ProgressChanged event
// To this method pass the percentage of processing that is complete
backgroundWorker1.ReportProgress(i);
if (i == 100)
{
e.Cancel = true;
// Reset progress percentage to ZERO and return
backgroundWorker1.ReportProgress(100);
return;
}
// Check if the cancellation is requested
if (backgroundWorker1.CancellationPending)
{
// Set Cancel property of DoWorkEventArgs object to true
e.Cancel = true;
// Reset progress percentage to ZERO and return
backgroundWorker1.ReportProgress(0);
return;
}
}
}
private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
progressBar1.Value = e.ProgressPercentage;
label1.Text = e.ProgressPercentage.ToString() + "%";
}
private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
if (e.Cancelled)
{
label1.Text = "Processing cancelled";
f.Show();
}
else if (e.Error != null)
{
label1.Text = e.Error.Message;
}
else
{
label1.Text = e.Result.ToString();
}
}
private void Form1_Load(object sender, EventArgs e)
{
if (!backgroundWorker1.IsBusy)
{
// This method will start the execution asynchronously in the background
backgroundWorker1.RunWorkerAsync();
}
}
private void button1_Click(object sender, EventArgs e)
{
if (!backgroundWorker1.IsBusy)
{
// This method will start the execution asynchronously in the background
backgroundWorker1.RunWorkerAsync();
}
}
private void button2_Click(object sender, EventArgs e)
{
if (backgroundWorker1.IsBusy)
{
// Cancel the asynchronous operation if still in progress
backgroundWorker1.CancelAsync();
}
}
{
int sum = 0;
for (int i = 1; i <= 100; i++)
{
Thread.Sleep(100);
sum = sum + i;
// Calling ReportProgress() method raises ProgressChanged event
// To this method pass the percentage of processing that is complete
backgroundWorker1.ReportProgress(i);
if (i == 100)
{
e.Cancel = true;
// Reset progress percentage to ZERO and return
backgroundWorker1.ReportProgress(100);
return;
}
// Check if the cancellation is requested
if (backgroundWorker1.CancellationPending)
{
// Set Cancel property of DoWorkEventArgs object to true
e.Cancel = true;
// Reset progress percentage to ZERO and return
backgroundWorker1.ReportProgress(0);
return;
}
}
}
private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
progressBar1.Value = e.ProgressPercentage;
label1.Text = e.ProgressPercentage.ToString() + "%";
}
private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
if (e.Cancelled)
{
label1.Text = "Processing cancelled";
f.Show();
}
else if (e.Error != null)
{
label1.Text = e.Error.Message;
}
else
{
label1.Text = e.Result.ToString();
}
}
private void Form1_Load(object sender, EventArgs e)
{
if (!backgroundWorker1.IsBusy)
{
// This method will start the execution asynchronously in the background
backgroundWorker1.RunWorkerAsync();
}
}
private void button1_Click(object sender, EventArgs e)
{
if (!backgroundWorker1.IsBusy)
{
// This method will start the execution asynchronously in the background
backgroundWorker1.RunWorkerAsync();
}
}
private void button2_Click(object sender, EventArgs e)
{
if (backgroundWorker1.IsBusy)
{
// Cancel the asynchronous operation if still in progress
backgroundWorker1.CancelAsync();
}
}
one to many relationship in sql
create table department
(
dept_id int identity primary key,
dept_name nvarchar(20) not null
)
insert into department values('CS')
insert into department values('MATHS')
insert into department values('PHYSICS')
insert into department values('CHEMISTRY')
insert into department values('GEOLOGY')
SELECT * FROM department
create table TEACHERS
(
T_id int identity primary key,
T_name nvarchar(20) not null
)
INSERT INTO TEACHERS VALUES('SALMAN')
INSERT INTO TEACHERS VALUES('ALI')
INSERT INTO TEACHERS VALUES('AHSAN')
INSERT INTO TEACHERS VALUES('AHMED')
INSERT INTO TEACHERS VALUES('BILAL')
INSERT INTO TEACHERS VALUES('ZOHAIB')
INSERT INTO TEACHERS VALUES('SANA')
INSERT INTO TEACHERS VALUES('KHALID')
INSERT INTO TEACHERS VALUES('KHIZRA')
INSERT INTO TEACHERS VALUES('SAMI')
INSERT INTO TEACHERS VALUES('UZAIR')
INSERT INTO TEACHERS VALUES('RAZA')
INSERT INTO TEACHERS VALUES('YASIR')
SELECT * FROM TEACHERS
CREATE TABLE T_D_RECROD
(
S_ID INT IDENTITY PRIMARY KEY,
FK_T INT unique FOREIGN KEY REFERENCES TEACHERS(T_id),
FK_d INT FOREIGN KEY REFERENCES department(dept_id)
)
insert into T_D_RECROD values(1,1)
insert into T_D_RECROD values(3,1)
insert into T_D_RECROD values(5,1)
insert into T_D_RECROD values(7,1)
insert into T_D_RECROD values(9,1)
insert into T_D_RECROD values(11,1)
insert into T_D_RECROD values(2,3)
insert into T_D_RECROD values(4,4)
insert into T_D_RECROD values(6,2)
insert into T_D_RECROD values(8,3)
insert into T_D_RECROD values(12,1)
select t.T_id,t.T_name,d.dept_id,d.dept_name from T_D_RECROD r inner join TEACHERS t on t.T_id=r.FK_T inner join
department d on d.dept_id=r.FK_d
Subscribe to:
Posts (Atom)
Pass Dynamically Added Html Table Records List To Controller In Asp.net MVC
Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...
-
Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...
-
Load event: pictureBox3.Image = Image .FromFile( @"C:\Users\salman\Documents\Visual Studio 2013\Projects\WindowsFormsApplication3\W...