All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
public
Form1()
{
InitializeComponent();
radTextBox1.Validating +=
new
CancelEventHandler(radTextBox1_Validating);
radTextBox1.Validated +=
EventHandler(radTextBox1_Validated);
}
void
radTextBox1_Validated(
object
sender, EventArgs e)
radTextBox1.TextBoxElement.Border.ForeColor = Color.FromArgb(156, 189, 232);
radTextBox1_Validating(
sender, CancelEventArgs e)
radTextBox1.TextBoxElement.Border.ForeColor = Color.Red;
if
(RadMessageBox.Show(
"Validated"
,
""
, MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.No)
e.Cancel =
true
;