-1-
-2-
الازرار BUTTON تعلم سي شارب
مربع النص والعنوان TEXT BOX AND LABEL تعلم سي شارب
اخفاء العناصر واظهارها SHOW AND HIDE تعلم سي شارب
موقع او موضع العناصر LOCATION OR POSITION تعلم سي شارب
=============================
code
=============
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;
namespace wfa0002
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
textBox1.Text = "hello";
label2.Text = textBox1.Text + " Mona";
}
private void button5_Click(object sender, EventArgs e)
{
button2.Visible = false;
button3.Visible = false;
button4.Visible = false;
}
private void button6_Click(object sender, EventArgs e)
{
button2.Visible = true;
button3.Visible = true;
button4.Visible = true;
}
private void button7_Click(object sender, EventArgs e)
{
}
private void label4_Click(object sender, EventArgs e)
{
}
private void textBox3_TextChanged(object sender, EventArgs e)
{
}
private void button8_Click(object sender, EventArgs e)
{
int x = int.Parse(textBox2.Text);
int y = int.Parse(textBox3.Text);
button7.Left = x;
button7.Top = y;
//button7.Location = new Point(x, y);
}
private void button9_Click(object sender, EventArgs e)
{
button7.Location = new Point(button7.Left+1, button7.Top+1);
}
private void button10_Click(object sender, EventArgs e)
{
button7.Location = new Point(button7.Left - 1, button7.Top - 1);
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
-3-
-4-