TextBox does not get OnMouseDown and OnMouseUp?

  • Thread starter Thread starter Hilton
  • Start date Start date
H

Hilton

Hi,

Works on full Framework, but on PDA, I don't get these events? Do these
work? Am I doing something wrong? WM 5.0, CF 1.

Since/If these don't work, any alternatives?

Thanks,

Hilton
 
Hi,
Compact Framework do not have OnMouseDown and OnMouseUp for
textbox. You can work with GotFocus and LostFocus events whichever
suits your requirements.

Regards,
Bipin Kesharwani
(Developer)

Palewar Techno Solutions
Pocket PC & Mobile Software Development
Nagpur, India

http://www.palewar.com
 
Bipin_Expert said:
Compact Framework do not have OnMouseDown and OnMouseUp for
textbox.

Sure it does, try:
class ABC : TextBox
{
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown (e);
}

}

You can work with GotFocus and LostFocus events whichever
suits your requirements.

Which one fires when a textbox already has the focus and you tap on it?

Hilton
 
Back
Top