Mickey-Mouse-Eye-Tracking-Game-C#

public partial class Form1 : Form { public Form1() { InitializeComponent(); } // The previous mouse location. private Point OldMousePos = new Point(-1, -1); // See if the mouse has moved. private void MyTimer_Tick(object sender, EventArgs e) { // See if the cursor has moved. Point new_pos = Control.MousePosition; if (new_pos.Equals(OldMousePos)) return; OldMousePos = new_pos; … Read more

Steganography C#

using System; using System.Drawing; namespace Stegnography.CSharpens { class Stegnography { public enum State { Hiding, Filling_With_Zeros }; public static Bitmap embedText(string text, Bitmap bmp) { // initially, we’ll be hiding characters in the image State state = State.Hiding; // holds the index of the character that is being hidden int charIndex = 0; // holds … Read more

Calculate.cs

namespace ASP_1 { public class Calculate { public int Add(int Value1, int Value2) { return Value1 + Value2; } public int Subtract(int Value1, int Value2) { return Value1 – Value2; } public int Multiply(int Value1, int Value2) { return Value1 * Value2; } public double Divide(int Value1, int Value2) { return Value1 / Value2; } … Read more

Calculator.css

.calculator-holder { position: relative; top: 50%; transform: translateY(+50%); } .calculator { width:300px; height:300px; background-color:#eeeeee; border:2px solid #CCCCCC; margin:0 auto 0 auto; padding-left:5px; padding-bottom:5px; } .calculator td { height:16.66%; } .calc_td_result { text-align:center; } .calc_result { width:90%; text-align:right; } .calc_td_calculs { text-align:center; } .calc_calculs { width:90%; text-align:left; } .calc_td_btn { width:25%; height:100%; } .calc_btn { width:90%; … Read more

Calculator.aspx Page

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Calculator.aspx.cs" Inherits="ASP_1.Calculator" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Sajjad’s Calculator</title> <link href="Calculator.css" rel="stylesheet" /> </head> <body> <form id="form1" runat="server"> <div class="calculator-holder"> <table class="calculator" id="calc"> <tr> <td colspan="4" class="calc_td_result"> <input type="text" readonly="readonly" runat="server" name="calc_result" id="calc_result" class="calc_result" /> </td> </tr> <tr> <td class="calc_td_btn"> <asp:Button ID="ButtonCE" runat="server" CssClass="calc_btn" Text="CE" OnClick="ButtonCE_Click" /> </td> <td … Read more