Modeless forms

Modeless forms

Anonymous
Not applicable
316 Views
5 Replies
Message 1 of 6

Modeless forms

Anonymous
Not applicable
Is there a trick to keeping the focus of a textbox on a modeless form so I
can actually type something in?

thanks,

jb (struggling with VBA)
0 Likes
317 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Search this NG for "AcFocus". Plenty of threads on this topic.

"James Buzbee" wrote in message
news:5151569@discussion.autodesk.com...
Is there a trick to keeping the focus of a textbox on a modeless form so I
can actually type something in?

thanks,

jb (struggling with VBA)
0 Likes
Message 3 of 6

Anonymous
Not applicable
That was it - thanks.

jb
0 Likes
Message 4 of 6

mdhutchinson
Advisor
Advisor
Can you explain this...?
0 Likes
Message 5 of 6

Anonymous
Not applicable
hutch wrote:

> Can you explain this...?

Why explain it *again*, follow the advice Norman gives.

Terry
0 Likes
Message 6 of 6

mdhutchinson
Advisor
Advisor
Okay... I think I have it...

I have a listbox control that lists the currently open drawing files with the following functionality:

Up and Down spin buttons to move the selected drawing up or down in the list.
Double click runs activate method to set the selected drawing current. The user can then pan and zoom to look at the drawing while the form remains open.

The added functionality is to allow the user to use the UP and DOWN arrow keys to also move the selected drawing UP or DOWN in the list. A vbModeless form doesn’t allow this by itself … but with AcFocus it does.
The functionality is now that the user has to click on the drawing to set focus to the drawing, this allows me to trap the UP and DOWN arrow keys to move a dwg UP or DOWN in the list. I think this is the same functionality that Arch desk top has (I learned ADT back in 2000i.)

Is this it?
0 Likes