clicking on a text box

  • Thread starter Thread starter Ravi
  • Start date Start date
R

Ravi

Hi,
In the .Net compact framework, text boxes do not have a
on_click method enabled.
I was wondering what methods people are using to
replicate on click.
I have a text box which i want to respond everytime on
tap on it.
 
there is a click event not onclick, also you could use
the GotFocus event

a c# example to hookup an event handler:

this.txtMyText.GotFocus += new System.EventHandler
(this.txtMyText_GotFocus);

this.txtMyText.Click+= new System.EventHandler
(this.txtMyText_Click);

private void txtMyText_Click(object sender,
System.EventArgs e)
{

//do something
}

private void txtMyText_GotFocus(object sender,
System.EventArgs e)
{

//do something
}
 
The Click event is not implemented for a textbox, but you could use the
GotFocus event.
 
Back
Top