We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

SelectAll - DoubleTextBox

Thread ID:

Created:

Updated:

Platform:

Replies:

41600 Mar 6,2006 04:19 PM Mar 8,2006 09:19 AM Windows Forms 3
loading
Tags: Tools
Administrator [Syncfusion]
Asked On March 6, 2006 04:19 PM

Why doen''''t the SelectAll works when user clicks within the current text. Is there a way to do this ? When user tabs to the control then the entire text gets selected.. but not when user clicks within the current text.. We are using Sync 3.0 Regards Yogi

Anupama Roy [Syncfusion]
Replied On March 6, 2006 11:46 PM

Hi Yogi, Have you tried giving SelectAll() in DoubleTextBox''s GotFocus Event? this.doubleTextBox1.GotFocus +=new EventHandler(doubleTextBox1_GotFocus); private void doubleTextBox1_GotFocus(object sender, EventArgs e) { this.doubleTextBox1.SelectAll (); } Please let me know if this does not satisfy your requirement. Thank you for choosing Syncfusion. Regards, Anu.

Administrator [Syncfusion]
Replied On March 7, 2006 10:15 AM

Tks for the reply.. the scenario i am describing is when u tab from field to field, selectall works fine.. but when u explicitly click on the text using mouse then selectall doesn''t work.. looks to me i need to override mouseup,mousedown and mousemove event.. to achieve this flavor.. > >Hi Yogi, > >Have you tried giving SelectAll() in DoubleTextBox''s GotFocus Event? > >this.doubleTextBox1.GotFocus +=new EventHandler(doubleTextBox1_GotFocus); > >private void doubleTextBox1_GotFocus(object sender, EventArgs e) > { > this.doubleTextBox1.SelectAll (); > } > >Please let me know if this does not satisfy your requirement. > >Thank you for choosing Syncfusion. > >Regards, > >Anu.

Anupama Roy [Syncfusion]
Replied On March 8, 2006 09:19 AM

Hi Yogi, This seems to be working fine with mouse click also in our latest version 4.1.Infact upon a single mouse click within the text will remove the highlight. Please let me know if you have any questions. Thanks, Anu.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;