cfrank2000
Well-known member
- Joined
- Mar 6, 2021
- Messages
- 71
- Programming Experience
- Beginner
Hi
I try to use in c# form textbox a placeholder following a tutorial but I've got 6 error, can I get help? thank you.
tutorial
I try to use in c# form textbox a placeholder following a tutorial but I've got 6 error, can I get help? thank you.
toto2:
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 Totogui2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void NameText_Enter(object sender, EventArgs e)
{
if (NameText_Enter== "12X12X12X12X12")
{
NameText_Enter = "";
NameText_ForeColor = Color.Black;
}
}
private void NameText_Leave(object sender, EventArgs e)
{
if (NameText_Enter == "")
{
NameText_Enter = "12X12X12X12X12";
NameText_ForeColor = Color.Silver;
}
}
private void label1_Click(object sender, EventArgs e)
{
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
}
}