PC Review


Reply
Thread Tools Rate Thread

clicking on a text box

 
 
Ravi
Guest
Posts: n/a
 
      5th Dec 2003
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.

 
Reply With Quote
 
 
 
 
Joe Audette
Guest
Posts: n/a
 
      5th Dec 2003
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
}




>-----Original Message-----
>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.
>
>.
>

 
Reply With Quote
 
Maarten Struys, eMVP
Guest
Posts: n/a
 
      5th Dec 2003
The Click event is not implemented for a textbox, but you could use the
GotFocus event.

--
Regards,

Maarten Struys, eMVP
PTS Software bv

"Ravi" <(E-Mail Removed)> wrote in message
news:074401c3bb5b$35e8e7a0$(E-Mail Removed)...
> 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.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: text outside merge cells despite clicking wrap text Gord Dibben Microsoft Excel Worksheet Functions 4 17th Jul 2008 09:01 PM
Clicking on text box that not revisable =?Utf-8?B?U3Vl?= Microsoft Access 3 25th Apr 2007 07:46 PM
Clicking a text field - have it select all of the text =?Utf-8?B?Q3VydGlzIFN0ZXZlbnM=?= Microsoft Access Forms 7 9th Aug 2006 01:15 AM
Is there a way to underline by clicking on text? atsd Microsoft Excel Misc 2 19th Mar 2006 10:12 PM
text box enables itself after clicking on somewhere else WJ Microsoft Access Form Coding 6 15th Nov 2004 03:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:16 PM.