How to change MsgBox button language - vb.net

I understand that the language of Message Box buttons is linked to the language of the Windows system. But this may not be the language of the end user. For instance, in a county like Switzerland having four official languages (German, French, Italian and Romansh), it is not unusual for a Windows system to be set up in English and not fit the user's needs. Adjusting the Windows Regional and Language options does not affect the language of Message Box buttons.
Is there any way to dynamically set an application to respect the System.Globalization.CultureInfo.CurrentCulture.LCID instead of the system language? I tried playing around with the parent form Localizable and Language settings with no success.
Any insight would be appreciated. Thanks!

Related

How to Get AutomationElement of windows from the control ID

I am trying to open notification tray(notification chevron) from the code using UI Automation but I am able to access the AutomationElement only from the accessible name like ( var chevron = AutomationElement.RootElement.Find("Notification Chevron"); ) this code works fine in English Operating System.
but here is one problem in this approach that, when I try to run this code in other language operating system like Italian OS, French OS etc.. then the code is not working as the accessible name of notification tray changes from "Notification Chevron" to specific language like in italian it changes to "Virgolette acute notifica" , similary it changes from french OS and other language OS.
I have tracked the properties of control throgh Ronerx in English and Italian and found that accessible name change with the OS but control ID remains same. So if there is any method to get AutomationElement from Control ID ? or any other way to solve this problem.
Image of properties of notification chevron in both Italian and English OS

"KeyDown" event not triggered when typing with Vietnam language

I am developing and UWP app. I need to customize the "KeyDown" event of "TextBox" control.
"KeyDown" event not triggered when typing with Vietnam language but it works fine with English / Korean typing.
Do I need to add anything additional settings or change any properties?
Can anyone please help me with this?
"KeyDown” event not triggered when typing with Vietnam language
It is by design, enable the Input Method Editor (IME) and Text Services Framework (TSF) when your apps have users who require assistive technology to enter text in complex languages, like Japanese and Simplified Chinese. Apps do not receive this event when an Input Method Editor (IME) is enabled. The Input Method Editor (IME) handles all keyboard input and sets Handled to true.

Using Applescript to switch VoiceOver language in osx

I am developing a multi-language OSX app which also uses text-to-speech.
I am using mac's VoiceOver and Applescript to control it.
In the app, users can switch languages and VoiceOver has to read the text in the selected language.
The goal is to switch VoiceOver language without quitting my application.
I can't find a way in Cocoa or Applescript to find out what is the current language in VoiceOver and to actively specify what language to set.
This is what I have done so far.
In VoiceOver Utility there is a section called Activities that lets you setup some VoiceOver configurations, including the language.
So I created an English and a French activity.
Then I found this really helpful list of commands that you can use in Applescript to control VoiceOver: http://www.cbtbc.org/tools/asvo/voec.php
In this list the only commands that control VoiceOver activities are: "open activity chooser"
and "previous activity"
"previous activity" changes the language, but there's no way to know what activity you are currently on or to specify the name of the activity that you want to go to (English or French) when the user presses the language button.
So for example, if the user clicks on the English button twice, or switches the app language when the VoiceOver is off, the application might be showing English text while the VoiceOver might be set in French.
Anybody had experience with this?
Thank you so much for your help!

Change the language of ““YourApp” Would Like to Use Your Current Location”

When using location services, I get this message: ““YourApp” Would Like to Use Your Current Location”
Is there any way to change this to another language, even if the iOS language is set to English? (My app comes in one non-English language only, so it’s weird to have that English dialog pop up in my non-English app.)
If you are using CLLocationManager, you can set its purpose property to any text you like.
This text will be displayed in addition to and under the standard "AppName Would Like To Use Your Current Location" text.
I would be very surprised if you can do that!
This is a matter of user privacy and it should be stated in the language selected by the user not you (developer).
On stock OS iOS devices, the language of OS privacy warnings is under user control, not an app's control via any public API.

What programming languages have access to the WinAPI?

I'm looking to start a new programming language and for my first task I want to overlay some text on another applications window, similar to the guy in this post:
Overlay text on some else's window - HUD
Clearly from that post, this can be done in VB.NET, and extrapolating from that, I can probably safely assume that C++\C# can also do this similarly.
My question is; are there any other languages that can do the same? Can Ruby do it? :)
I'm looking for the following capabilities:
Enumerate open windows to find the one I want to overlay on top of.
Overlay text on the 3rd party apps window. (Rich text is a bonus)
Detect window bounds so I can resize the text when the user resizes the window.
Allow click-through of my created text so it doesn't interfere with the 3rd party apps functionality.
Any ideas?
If you want to use Ruby, you have two options: IronRuby and "classic Ruby".
I guess IronRuby would be the preferred option on Windows as it runs on top of .NET and has access to full Windows API through that.
If .NET is too much for your needs and you need to do something simple, then classic Ruby might be a better fit.
For classic Ruby, check out these pages:
Ruby and Microsoft Windows
Microsoft Windows Support
Beware: argument packing and unpacking is not very convenient.