Copy and Paste  -   An Application to Copy/Paste Text  

 
S.No 4161 Name haris Date/Time 22-Jul-2019 10:36:45 AM

Copy text from below
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace project3
{
public partial class calculator : System.Web.UI.Page
{
public static Double ResultValue = 0;
public static string OperationPerformed = "";
public static bool isOperationPerformed = false;
protected void Page_Load(object sender, EventArgs e)
{

}



protected void Button1_Click(object sender, EventArgs e)
{
if ((TextBox1.Text == "0") || (isOperationPerformed))
{
TextBox1.Text = "";

}
Button button = (Button)sender;
TextBox1.Text = TextBox1.Text + button.Text;

isOperationPerformed = false;
}


protected void operator_event(object sender, EventArgs e)
{
Button button = (Button)sender;
OperationPerformed = button.Text;
ResultValue = Double.Parse(TextBox1.Text);
// LabelCurrentOperation.Text =TextBox1.Text+ " "+ OperationPerformed;
isOperationPerformed = true;
}

protected void Button4_Click(object sender, EventArgs e)
{
TextBox1.Text = "";
LabelCurrentOperation.Text = "";
ResultValue = 0;

}

protected void Button15_Click(object sender, EventArgs e)
{
LabelCurrentOperation.Text = TextBox1.Text + " " + OperationPerformed;
//LabelCurrentOperation.Text = "";
switch (OperationPerformed)
{
case "+":
TextBox1.Text = (ResultValue + Double.Parse(TextBox1.Text)).ToString();

break;

case "-":
TextBox1.Text = (ResultValue - Double.Parse(TextBox1.Text)).ToString();
break;

case "*":
TextBox1.Text = (ResultValue * Double.Parse(TextBox1.Text)).ToString();
break;

case "/":
TextBox1.Text = (ResultValue / Double.Parse(TextBox1.Text)).ToString();
break;

default:
break;







}



}

protected void TextBox1_TextChanged(object sender, EventArgs e)
{

}
}
}




comments powered by Disqus
NEW ENTRIES
S.No Name Entry Time/Date
4400 GymRepairPro 28-Sep-2020 03:41:03 AM
4399 Jeux video M 26-Sep-2020 03:11:39 PM
4398 port 24-Sep-2020 08:03:56 AM
4397 iptable 24-Sep-2020 07:42:29 AM
4396 Massage Hut 20-Sep-2020 10:46:07 AM
4395 nd 18-Sep-2020 02:57:19 PM
4394 aa 18-Sep-2020 12:31:35 PM
4393 Ss 15-Sep-2020 09:18:37 AM
4392 Gg 15-Sep-2020 09:12:15 AM
4391 Link 15-Sep-2020 09:07:28 AM
4390 Locksmithlan 13-Sep-2020 05:26:28 PM
4389 osman 27-Aug-2020 09:08:34 PM
4388 osm 27-Aug-2020 09:06:56 PM
4387 copy 24-Aug-2020 08:04:26 PM
4386 fdgdfhdfhdfd 19-Aug-2020 08:12:18 PM
4385 aa 05-Aug-2020 12:08:51 AM
4384 nvcx 03-Aug-2020 06:46:25 PM
4383 lll 03-Aug-2020 06:45:54 PM
4382 Abd 07-Jul-2020 01:39:30 AM
4381 Dds 22-Jun-2020 11:52:09 AM
4380 Shahbaz bin 16-Jun-2020 08:33:52 AM
4379 Shahbaz bin 14-Jun-2020 09:43:02 AM
4378 meet 31-May-2020 02:01:24 PM
4377 Bills 20-May-2020 04:26:40 PM
4376 xk 18-May-2020 12:17:09 AM
4375 jamshed 12-May-2020 04:32:56 PM
4374 Saad 07-May-2020 11:58:32 PM
4373 Furqan 06-May-2020 06:13:59 PM
4372 Cyanide 06-May-2020 01:41:09 PM
4371 setprecison 03-May-2020 05:50:29 PM

1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 [Next] [Last]
 
web counter
web counter


To report any error messages or bugs, or other issues, please send email at: info@pakproject.com