sql - who to write multilanguage or only( urdu) in wpf application textbox with vb.net? -


this code not working. done code? plz me!

public sub urdu_gotfocus(byval inputlang inputlanguage)    if inputlanguage.installedinputlanguages.indexof(inputlang) = -1         throw new argumentoutofrangeexception()    end if     inputlanguage.currentinputlanguage = inputlang end sub 

if try code

private sub urdu_textchanged(sender object, e textchangedeventargs, byval inputlang inputlanguage) handles urdu.textchanged     if inputlanguage.installedinputlanguages.indexof(inputlang) = 1         throw new argumentoutofrangeexception()     end if     inputlanguage.currentinputlanguage = inputlang end sub 

then error occurred error 1 method 'private sub urdu_textchanged(sender object, e system.windows.controls.textchangedeventargs, inputlang system.windows.forms.inputlanguage)' cannot handle event 'public event textchanged(sender object, e system.windows.controls.textchangedeventargs)' because not have compatible signature. c:\users\atk\documents\visual studio 2013\projects\wpfapplication1\wpfapplication1\insert.xaml.vb 146 126 wpfapplication1 doing wrong please guide me?

thank clarifying trying do, objective not clear original post.

first of all, should make sure have urdu installed in keyboards/languages - note not same having urdu font!

if use windows installation of new keyboard should similar below step #1 step #7

if have urdu keyboard installed, jump right end of solution , review code there.

step #1 open control panel , select clock/languages/region enter image description here

step #2 select regional , language options enter image description here

step #3 click on change keyboards , other input methods enter image description here

step #4 click on add button

enter image description here

step #5 select urdu language , click on ok button enter image description here

step #6 confirm urdu language listed , click on okay button enter image description here

step #7 click on okay button enter image description here

once have added urdu installed languages list continue here.

using code below:

private sub form1_load(sender system.object, e system.eventargs) handles mybase.load   dim counter integer = nothing   if inputlanguage.installedinputlanguages.count > 0     counter = 0 inputlanguage.installedinputlanguages.count - 1        combobox2.items.add(inputlanguage.installedinputlanguages(counter).layoutname)     next   end if end sub  private sub combobox2_selectedindexchanged(sender system.object, e system.eventargs) handles combobox2.selectedindexchanged   if inputlanguage.installedinputlanguages.indexof(inputlanguage.installedinputlanguages(combobox2.selectedindex)) = (-1)     throw new argumentoutofrangeexception()   else     inputlanguage.currentinputlanguage = inputlanguage.installedinputlanguages(combobox2.selectedindex)   end if end sub 

you should able select urdu language, , type in urdu in textbox

enter image description here

enter image description here

another update

hello sonia, think wanted? per comments in comments below?

private sub txtenglish_gotfocus(sender object, e system.eventargs) handles txtenglish.gotfocus   inputlanguage.currentinputlanguage = inputlanguage.installedinputlanguages(0) end sub  private sub txturdu_gotfocus(sender object, e system.eventargs) handles txturdu.gotfocus   inputlanguage.currentinputlanguage = inputlanguage.installedinputlanguages(1) end sub 

maybe link maybe of sonia? http://www.codeproject.com/articles/38751/building-multilingual-wpf-applications


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -