Vote count:
0
I have made a masked textbox for storing numbers with the mask (999) 000-0000 and i want to show only numbers in label but when i do that it also copies the parantheses and lines.
i know it copies all the text how i can only copy numbers entered not with mask? (windows form)
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 WindowsFormsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
label1.Text = maskedTextBox1.Text;
}
}
}
asked 39 secs ago
Aucun commentaire:
Enregistrer un commentaire