1-) C# RMOS - tokenEdit1 kullanımı maillerde mail yazınca close iconu çıkar gibi
using System;
using System.Windows.Forms;
namespace WindowsFormsApplication13
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void tokenEdit1_ValidateToken(object sender, DevExpress.XtraEditors.TokenEditValidateTokenEventArgs e)
{
e.IsValid = true;
}
private void Form1_Load(object sender, EventArgs e)
{
tokenEdit1.Properties.EditMode = DevExpress.XtraEditors.TokenEditMode.Manual;
tokenEdit1.Properties.Separators.Add(";");
}
private void tokenEdit1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
tokenEdit1.CloseTextEditor(true);
tokenEdit1.DoValidate();
tokenEdit1.ActivateTextEditor();
}
}
}
}
-- DEĞERLERİ BU ŞEKİLDE ÇEKEBİLİRSİN
string[] split = tokenEdit1.EditValue.ToString().Replace(" ","").Split(',');
MessageBox.Show( split[0] + "-" + split[1]);