It Seems Like when I have changed the Accessibility role from Default to Clock It is Reading out the Date.
Datepicker accessibility Issues.
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:
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?
2 answers
Sort by: Most helpful
-
Prasad Babu Konduru 11 Reputation points Microsoft Vendor
2020-11-26T10:53:59.95+00:00 -
Rajanikant Hawaldar 91 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;
}