Skip to content

Opening a form with ShowDialog() - no control has focus until you click on the window #121

Description

@itg-assistant

Nic Adams asked 2016-06-20 15:18:32 UTC

  • Create a simple, sample app with one form

  • Put two text boxes on the form.

  • Run the app.

  • Note that the textbox control with the lowest tab index will be selected when the form is displayed.

  • You can tab between the textbox controls

Modify program.cs, replace window.Show() with window.ShowDialog()

  • Run the app.

  • Note that no control will be selected and you cannot tab until you have clicked somewhere on the window.

(Sample app attached)

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions