Leave event is not working.
-
private void rtb_leave(object sender, EventArgs e)
{
Class1.query = rtb.Text;
}private void InitializeComponent()
{
this.rtb = new System.Windows.Forms.RichTextBox();
this.rtb.Leave += new System.EventHandler(this.rtb_leave);
}I have done this coding...But leave event is not working..what is the problem??
-
private void rtb_leave(object sender, EventArgs e)
{
Class1.query = rtb.Text;
}private void InitializeComponent()
{
this.rtb = new System.Windows.Forms.RichTextBox();
this.rtb.Leave += new System.EventHandler(this.rtb_leave);
}I have done this coding...But leave event is not working..what is the problem??
if this is actual code, then: 1) it is ugly (Class1 is not a good name for a class; a property should be CamelCased); 2) you can't leave a Control that isn't part of some Container (such as a Form), and hence invisible. and if it isn't we can not help you as actual code is required. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
if this is actual code, then: 1) it is ugly (Class1 is not a good name for a class; a property should be CamelCased); 2) you can't leave a Control that isn't part of some Container (such as a Form), and hence invisible. and if it isn't we can not help you as actual code is required. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum