trying to make a name picker

  • Thread starter Thread starter john-u
  • Start date Start date
J

john-u

Guest
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 UgabiLab2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnFirstName_Click(object sender, EventArgs e)
{
//John Ugabi.
//September 25th
//This program will demonstrate the features of the IDE that have been gone over in class.
//display first name.
lblDisplayOutputHere.Text = txtFirstName;
}
private void btnLastName_Click(object sender, EventArgs e)
{
//display last name.
lblDisplayOutputHere.Text = txtLastName;
}
private void btnCity_Click(object sender, EventArgs e)
{
//display city.
lblDisplayOutputHere.Text = txtCity;
}
private void btnInterests_Click(object sender, EventArgs e)
{
//display interests.
lblDisplayOutputHere.Text - txtInterests;
}

private void btnExit_Click(object sender, EventArgs e)
{
//closes the form
this.Close();
}
}
}

Continue reading...
 
Back
Top