如何在Windows窗体的文本框中输入马拉地语文本

如何在Windows窗体的文本框中输入马拉地语文本

本文介绍了如何在Windows窗体的文本框中输入马拉地语文本.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Vishal Varvate ..
朋友们,我正在开发一个Windows应用程序,该程序可以方便用户以Marathi语言输入输入,但是我没有做到这一点.我试图将文本框的font属性设置为Marathi font,但是无法更改font属性,我也尝试使用资源文件,其中我复制了Marathi文本并将其粘贴到特定名称的值中,但是我想允许用户在文本框中输入Marathi文本,如果有的话该怎么做请帮助我. ..

谢谢高级顾问.

Vishal Varvate..
Hi friends i am developing a windows application in which facilitate the user to enter input in Marathi language but i fails to do this.I tried to set text box''s font property to Marathi font but font property can''t be changed,i also tried to use resource file,in which i copied Marathi text and paste it in value of a particular name but i want to allow the user to enter Marathi text in text box,if any body how to do this Please help me....

Thank You in Adv..

推荐答案


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Globalization;
using System.Resources;

namespace localize_demo1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR");
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            ResourceManager LocRes = new ResourceManager("localize_demo1.Resource1", typeof(Form1).Assembly);
            MessageBox.Show(LocRes.GetString("strMessage"));
        }
    }
}





Resource1.de-DE.resx
名称值
strMessage Hallo Welt

Resource1.fr-Fr.resx
名称值
strMessage Bonjour le Monde

Resource1.resx
名称值
strMessage Hello World





Resource1.de-DE.resx
name value
strMessage Hallo Welt

Resource1.fr-Fr.resx
name value
strMessage Bonjour le Monde

Resource1.resx
name value
strMessage Hello World


这篇关于如何在Windows窗体的文本框中输入马拉地语文本.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 06:05