.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
SP
satyapriyanayak
Subhransu Sekhar Jena
abhays
DotnetUser

Home >> Code Snippets >> Visual Studio >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Bible psalms 1st chapter reading in Tamil

Posted By:laptop charles       Posted Date: December 23, 2010    Points: 15    Category: Visual Studio    URL: http://www.dotnetspark.com  

I have used one rich textbox and three combo box one select the Psalms and other one is chapter selection and last one is verses select and read the psalms wordings.Change the tamil font in rich textbox.
 

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;

namespace bible
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        int ch = 0;

        private void Form1_Load(object sender, EventArgs e)
        {
           

        }

        private void com2_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (com2.SelectedIndex.ToString() == "0")
            {
                ch = 6;
                loop1(ch);  
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
             
        }
        void loop(int ch)
        {
            for (int i = 1; i <= ch; i++)
            {
                com2.Items.Add(i);
            }
        }
        void loop1(int ch)
        {
            for (int i = 1; i <= ch; i++)
            {
                com3.Items.Add(i);
            }
        }
        private void com1_SelectedIndexChanged(object sender, EventArgs e)
        {
            
                if (com1.SelectedItem.ToString() == "Psalms")
                {
                    ch = 150;
                    loop(ch);

                }
           
           
        }

        private void com3_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch(com3.SelectedItem.ToString())
            {
                case "1":
                    r.Text="Jd;khh;f;fUila MNyhridapy; elthkYk;> ghtpfSila topapy; epy;yhkYk;> ghpahrf;fhuh; cl;fhUk; ,lj;jpy; cl;fhuhkYk;> ";
                    break;
                case "2":
                    r.Text="fh;j;jUila Ntjj;jpy; gphpakhapUe;J> ,uTk; gfYk; mtUila Ntjj;jpy; jpahdkhapUf;fpw kDd; ghf;fpathd;.";
                    break;
                case "3":
                    r.Text=". mtd; ePh;f;fhy;fspd; Xukha; elg;gl;L> jd; fhyj;jpy; jd; fdpiaj; je;J> ,iyAjpuhjpUf;fpw kuj;ijg; NghypUg;ghd;@ mtd; nra;tnjy;yhk; tha;f;Fk;. ";
                    break;
                case "4":
                    r.Text="Jd;khh;f;fNuh mg;gbapuhky;> fhw;Wg; gwf;fbf;Fk; gjiug;Nghy; ,Uf;fpwhh;fs;.";
                    break;
                case "5":
                    r.Text="Mifahy; Jd;khh;f;fh; epahaj;jPh;g;gpYk;> ghtpfs; ePjpkhd;fspd; rigapYk; epiyepw;gjpy;iy.";
                    break;
                case "6":
                    r.Text="fh;j;jh; ePjpkhd;fspd; topia mwpe;jpUf;fpwhh;@ Jd;khh;f;fhpd; topNah mopAk;.";
                    break;
            }

        }

    }
}

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend