Datepicker accessibility Issues.

Prasad Babu Konduru 11 Reputation points Microsoft Vendor
2020-11-26T06:16:22.21+00:00

Hi

I have added a datepicker in Windows Forms Application.

I need system to read out the date that is selected Or Focused when Screen Reader or Narrator is turned ON.

Example:
42941-image.png

When The start date is Highlighted then it should read out complete date as 27th November 2019 but Now it is only reading out Label Description - Start Date.
Can Any one Help me?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,840 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,312 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Prasad Babu Konduru 11 Reputation points Microsoft Vendor
    2020-11-26T10:53:59.95+00:00

    It Seems Like when I have changed the Accessibility role from Default to Clock It is Reading out the Date.

    2 people found this answer helpful.
    0 comments No comments

  2. Rajanikant Hawaldar 86 Reputation points
    2020-11-26T07:44:24.437+00:00

    Screen Reader will or Narrator will read string from ateTimePicker1.AccessibilityObject.Name property so you have to change it on select date as below.

    private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
    {
    dateTimePicker1.AccessibleName = lblStartDate.Text + " " + dateTimePicker1.AccessibilityObject.Name;
    }

    0 comments No comments