On Feb 9, 2007, at 12:42 PM, Peter K. Stys wrote:

I have a list box with several columns, 2 of which are editable.  When
I double-click an editable cell to make it active (text selected),
then push a test button with myListBox.DeleteAllRows, all rows are
deleted except the text in the cell that was editable remains visible
in the listbox.

Interesting that you're seeing what you see. In a simple test here of a Listbox with Col 0 set to Editable, if I execute a "DeleteAllRows" while a cell is in edit mode, the listbox is cleared. Granted my test was short - ListBox1 and PushButton1 on a Window

        Pushbutton1.Action:

                ListBox1.DeleteAllRows

        ListBox1.Open:

                Dim i As Integer

                Me.ColumnType(0) = ListBox.TypeEditable
                For i = 0 To 10
                        Me.AddRow Str(i)
                Next

That works as expected even if I add a lot of text to the current edit cell.

This only happens in RB2007r1; same code recompiled with RB2006r4 does
not exhibit this anomaly.

Just tested that on 2006r4 and 2007r1 with the same results.

Has anyone seen this and how do I delete all rows AND make the
selected text disappear as well.

Is there possibly some other setting that you're making to the listbox that may be interfering?

Tim
--
Tim Jones
[EMAIL PROTECTED]

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to