Lawrence E Dietrich 6.Aug.03 01:21 PM a Web browser Domino Designer6.0.1All Platforms
I am presesenting a dialog box using the DialogBox method. I would like to highlight the entire contents of certain fields as the cursor enters the field (for quick replacement of existing value).
Here's my code:
Sub Entering(Source As Field)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
Call uidoc.SelectAll
End Sub
This seems to work fine in an ordinary Notes document, but in the dialog box, it usually does not highlight anything. On the other hand, sometimes a field that does not even have any code in the Entering event DOES highlight itself!
Is it just something that won't work in a dialog? Is there a better way?