Hi David, I think there is a control( ID).Focus() that you should use. The ID is the name you have given to that specific edit box. So, try that.
Bruce Sent: Thursday, March 31, 2016 9:20 AM Subject: Auto-focusing an edit box Ok, got a bit of an issue, I seem to not get my brain wrappe around. Hope for someone to have a good idea here. Thanks in advance. I am trying to construct a form, using a dialog defined in my XML file. It generally works as expected. Yet, I have this one issue. The form holds three edit boxes, all of which should be visible and enabled under all conditions. It then holds a fourth edit box, which only will be visible, and enabled, in case one of the radiobuttons on the form is checked. It is not much of coding to get the edit box to show up and hide, depending on the radiobutton's status on the screen. What I had a dream of accomplishing, though, is to have the cursor automatically jump to the edit box, once it gets activated by the radiobutton. I use the RadiobuttonClicked Event, to determine when the radiobutton got activated, and then make the edit box visible and enabled. But I don't see anything in the Quick Reference, that will let me force focus onto the edit box. Can this be accomplished, and if so, what is the clue that I am missing? BTW, could someone please enlighten me on two small questions, please. 1. What is a Push Button, as compared to a Radiobutton? 2. Do I have to use both the Visible and Enable features of the edit box, to have it shown or hidden? Or, is it enough to just use one of them. And if so, why are they both there? I want the thing to work, even for sighted users, so it does matter whehter the thing really gets inactive visually. Thanks, -- David _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/lab4me%40fltg.net. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com