Cursor mystery...

J

Jay

The following VBA statement fires up a form with a blinking cursor in
EditBoxes(1) as desired:
DialogSheets("ControlForm").Show
A separate routine clears lthe contents from all edit boxes on the form, but
the cursor disappears (doesn't show in any editbox) and I can't seem to get
it back unless the Form is closed and opened again.

The following statements have been tried, but neither works:
DialogSheets("ControlForm").EditBoxes(1).SetFocus
DialogSheets("ControlForm").EditBoxes(1).SetFocus = True

Also, if there is an entry in the "home" field (the field where the cursor
should appear when the rest of the form is cleared), it would be nice if the
entire box was highlighted so the user could replace the contents just by
typing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top