Make two arrays of same size (3) and take their values by user by using input boxes and add them in an
third array and display results in msgbox(). (Note: One msgbox should display one result at a time)
Write a simple application which is used to translate the words in LATIN.
third array and display results in msgbox(). (Note: One msgbox should display one result at a time)
Write a simple application which is used to translate the words in LATIN.
Solution :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace latin_converter
{
public partial class Form1 : Form
{
bool a = false;
bool b = false;
bool c = false;
public Form1()
{
InitializeComponent();
}
private void btne_Click(object sender, EventArgs e)
{
System.Environment.Exit(0);
}
public void text()
{
if(a==true)
{
lbl1.Text = "Left";
}
if (b == true)
{
lbl1.Text = "Middle";
}
if (c == true)
{
lbl1.Text = "Right";
}
}
private void btn1_Click(object sender, EventArgs e)
{
a = true;
text();
}
private void btn2_Click(object sender, EventArgs e)
{
b = true;
text();
}
private void btn3_Click(object sender, EventArgs e)
{
c = true;
text();
}
private void lbl1_Click(object sender, EventArgs e)
{
}
}
}
Post A Comment:
0 comments: