Answers for "c# control lost focus event"

C#
0

c# control lost focus event

// This method handles the LostFocus event for textBox1 by setting the 
// dialog's InitialDirectory property to the text in textBox1.
private void textBox1_LostFocus(object sender, System.EventArgs e)
{
    openFileDialog1.InitialDirectory = textBox1.Text;
}
Posted by: Guest on October-25-2020

C# Answers by Framework

Browse Popular Code Answers by Language