src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/DropDownControl.cs
/// <summary>
///     Select all text in the edit area
/// </summary>
Select all text in the edit area
Select all text in the edit area
public void SelectAllText()
        {
            if (!IsHandleCreated)
            {
                CreateHandle();
            }
            if (Edit != null)
            {
                Edit.Focus();
                var hwndEdit = Edit.Handle;
                NativeMethods.SendMessage(hwndEdit, NativeMethods.EM_SETSEL, -1, -1); 
                NativeMethods.SendMessage(hwndEdit, NativeMethods.EM_SETSEL, 0, -1); 
            }
        }
public void SelectAllText ( ) { if ( ! IsHandleCreated ) { CreateHandle ( ) ; } if ( Edit != null ) { Edit . Focus ( ) ; var hwndEdit = Edit . Handle ; NativeMethods . SendMessage ( hwndEdit , NativeMethods . EM_SETSEL , - 1 , - 1 ) ; NativeMethods . SendMessage ( hwndEdit , NativeMethods . EM_SETSEL , 0 , - 1 ) ; } }
Select all text in the edit area
Select all text in the edit area
// force handle creation here, because we need the edit control. // Note that m_edit.SelectAll() is not quite the same as the following code // move to the end // select all text