Datepicker accessibility Issues.

Prasad Babu Konduru 11 Reputation points Microsoft Vendor


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.


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,631 questions
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.
8,998 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Prasad Babu Konduru 11 Reputation points Microsoft Vendor

    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

    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