programs_visual_studio
programs_visual_studio
MessageBox.Show("hi cs");
}
}
}
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
}
}
program :10 Basic Arithmetic Operations and display in labels and show welcome
in MessageBox
and name of message box is output show messagebox buttons yes,no,cancel. and show
icon also.
}
}
program:11 Input two numbers in textboxes from user Addition of Two Numbers and
Display in TextBox
}
}
program:14 Extract and Display First Character of a String
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string input = (textBox1.Text);
Char result = input[0];
MessageBox.Show("character:" + result, "Result");
}
}
program:15 Convert String to Double and Display in MessageBox
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}
program:18 Convert Double to String and Display in MessageBox
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}
program 20 Write a program that contains two textboxes and one button .
when user clicks the button after entering some value to textboxes
Both value should be inter-change.
}
}
program 23 Write a program that gets the temperature from user in Celsius and
convert to Fahrenheit
using formula F=9/5C+32.
}
}
program 24 Wrie a program that inputs second from the user and display
hours ,minutes and seconds.
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}
program 25 Write a program that gets the 3 digit number from user and display it
in Reverse order.
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}