You must Sign In to post a response.
  • Category: Windows

    How to type Tamil Font in a TextBox in WindowsForms Application.

    Hi Developers ,
    i am creating a windows forms Application. in my application i need to insert the values in tamil.
    so how can i make to type Tamil Font in a TextBox or English
    in normal website i can do this.
    but in a windows application i can't able to do this .

    So if anyone know how to do this please suggest me to i am done this task.

    Thanking you
    Paul.S
  • #768638

    Its simple
    drag and Drop TextBox Your Windows Form then Press F4 For Property Window then set like this
    Font -> Tamil Bible, 8.25pt, style=Bold
    But in some cases
    Windows Forms applications do not need any special code for handling Tamil: they support Unicode. Make sure that you use a font which supports the Tamil characters.
    In case you think of a Form with several textboxes, some for input in English, some for input in Tamil, and you would like to ease the input for the user by setting the appropriate input method automatically, you can do as follows:
    Add handlers for the Enter and Leave events of a TextBox. In the event handlers, change the InputLanguage acordingly


    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #768640
    i can understand your Suggestion mr.Prasad . but i have no exact idea to how to implement it.


    Paul.S

  • #768645

    Just open a windows form application, create new project, drag a textbox on it
    go to its properties -> select font option -> select Tamil Bible, 8.25pt, style=Bold
    Now try to type in textbox and see if its type in Tamil
    But before you try this solution you should have Tamil font available in your system
    (in Windows\Font)


    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #768650
    hello Mr.Prasad ,
    My Expected exact output is like the following. of your comment.

    In case you think of a Form with several textboxes, some for input in English, some for input in Tamil, and you would like to ease the input for the user by setting the appropriate input method automatically, you can do as follows:
    Add handlers for the Enter and Leave events of a TextBox. In the event handlers, change the InputLanguage acordingly

    so if there is any Possible options you know please suggest me sir. i have tried lots of ways with google but i cant able to get exact output.

    Thanks with
    Paul.S

  • #768677
    First you need to download Tamil font and install your computer and change your controls font name corresponding Tamil font then you can try following code snippet
     CSS code

    .TamilFont
    {
    font-family : VANAVIL-Barani;
    }

    Html Code

    <asp:TextBox ID="Txt1" runat ="server" Text ="vanakam" CssClass ="TamilFont"></asp:TextBox>


    Reference: http://www.dotnetfunda.com/forums/show/14032/type-tamil-word-in-textbox-in-csharpnet


Sign In to post your comments