In VB.NET, I want to allow typing of non English Characters (For example, Russian, Turkish) in text box. How can I achieve this? Please let me know.
I believe richtextbox allows for that. You're talking about accents and umlauts right?
If so, I'm pretty sure if you just resize your richtextbox down to the size of your textbox then you'll be alright.
If that doesn't work try importing a language pack resource. Use MSDN for specific ones.
Hope that helped
Related
Is there a way to detect if there is formatting or not (i.e. Rich) anywhere in a RichTextBox?
I'd like to write RichTextBox.Rtf is there is, and RichTextBox.Text if there isn't.
I came across a post that suggested checking the SelectionFont after selecting all text, but I have no idea how to accomplish that, or if it would work.
Thanks!
You can check the rtf property of the richtextbox: richtextbox1.rtfto see the rich text code. Even with no additional formatting, there will be some rich text formatting. For example, here's what you get with a richtextbox containing only "text":
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}}
\viewkind4\uc1\pard\f0\fs16 test\par
}
You can check to see if there are any additional formatting tags, and if not, it should be plain text. You can also access the plain text (without formatting) with richtextbox1.text.
I need some help with Cyrillic support. First, I do not know if it is possible but here it is what I want to do:
When typing in Google Custom Search is it possible letters to be changed automatically in Cyrillic characters? This actually should "replace" Alt+Shift function, so that user should not change his keyboard language and then start searching, but as he typing in the search letters should convert instantly.
Right now I am using "onkeyup="this.form.s.value=toCyr(this.form.s.value)" for my website and I was wondering if something similar could be done with Google Custom Search.
I don't know about replace , but google does have Phonetic typing which could be vary helpful http://www.google.com/inputtools/try/
What is the actual encoding used in Access' VBA editor? I have been searching for a concrete answer for quite a while but with no luck.
I thought it was UTF-8 but I'm not very certain.
My main issue is that when writing a query in VBA I sometimes need to test it in Access' query editor. When copy-pasting however, I lose my native characters (greek in my case) as they turn to gibberish.
I have tried pasting in a text editor and saving it as different encodings but I can never recover the original characters.
Thanks in advance.
Edit
Let me explain this a bit further:
As you can see I can write my greek characters in the VBA editor normally:
However, copying the first line in Access' query editor, I get the following:
Same goes for a simple text editor:
So I am inclined to think that the problem lies inside the clipboard, due to the encoding used for the greek characters. I guess they are not Unicode, as I indeed have to make the change in the System Locale for non-unicode characters. So how are these characters saved/copied? In what encoding?
Answer
Actually this problem was solved by switching the keyboard input language to greek (EL), when copying the actual test string.
I am still not sure however, as to why that happens. If anyone can provide some insight into this, I would love to hear it.
Thanks again
The VBA editor does not support Unicode characters, either for input or display. Instead, it uses the older Windows technology called "code pages" to provide support for non-ASCII characters.
So, the character encoding in the VBA editor corresponds to the code page that is used by the Windows system locale as specified in the "Regional and Language Options" control panel. For example, with my system locale set to "Greek (Greece)"
I can enter Greek characters into my VBA code
However, if I switch my Windows system locale back to "English (United States)"
and re-open my VBA project, the Greek characters have changed to the corresponding characters in the new code page
If "Control Panel" -> "Regional and Language Options" -> "System Locale" is set correctly but you still suffer from this problem some times then note that while you're copying your keyboard layout must be switched to the non-English language.
This is applicable to all non-unicode-aware applications not only VBA.
Credit goes to #parakmiakos
details in this: http://www.pcreview.co.uk/forums/use-greek-characters-visual-basic-editor-t2097705.html
Looks like making sure your OS is set properly, and font choice inside the VBA editor.
I had a similar problem with Cyrillic characters. Part of the problem is solved when set the System locale correctly.
However, The VBA editor still does not recognize cyrillic characters when it has to interpret them from inside itself.
For example it can not display characters from the command:
Msgbox "Здравей"
but if the sheet name is in cyrillic characters it does it well:
Msgbox Activesheet.Name
Finally, it turned out that these kind of problems were solved when I changed to 32 bits version of MS Office.
I am making an PM system, now I am to where you are going to type the PM.
I dont know really what to use, I don't want to use an normal fugly text field, as theres much nicer stuff out there.
Ive seen those auto expand textfields, that expands more you write? What is this called? Then there's this facebook have, which i also like. And then i have seen this "CKEdtior" stuff, which also seems pretty cool (but i wonder how the output from the CKeditor look like if you use bold, italic, etc..)
Which should I get? What i wish is nice, simple & effective.
maybe this is what you are looking for!
Depends on if you want to allow the user to put in stylized text like bold, italic, links etc. If thats the case there are many editors out there that will turn a stock text area into a full featured editor or even a limited editor. All the below editor return formatted HTML text. What you do with it is up to your app.
Try these if you want a word like editor:
xinha.webfactional.com
tinymce.moxiecode.com
ckeditor.com
www.dhtmlx.com/docs/products/dhtmlxEditor/index.shtml
I want to add Arabic typing in VB.Net. How can I do that?
It already supports it; it's all unicode under the hood now. If your users have an arabic keyboard layout the standard controls and inputs should accept arabic text. You do need to make sure to use a system that supports unicode for any persistence you use (database, config files, etc), but the vb.net layer should already work.