Está en la página 1de 9

UNICARIBE William hiciano 2015-2668

Unidad 2, Act. 2 – Usando Controles Contenedores

1|Page
UNICARIBE William hiciano 2015-2668

2|Page
UNICARIBE William hiciano 2015-2668

3|Page
UNICARIBE William hiciano 2015-2668

En la siguiente captura de pantalla podemos ver que el programa se ejecuta correctamente.

En el tabPage1 cliqueamos en la Opción 3.

Al hacer esto podemos ver que


efectivamente se selecciona el textBox3 en el Tab2

4|Page
UNICARIBE William hiciano 2015-2668

A continuación, podemos observar en la captura siguiente como al cliquear en uno de los


LinkLabels localizados en el Tabpage 3 nos redirecciona hacia el webiste que está colocado en el
código.
Haremos click en el LinkLabel correspondiente a Facebook.

En efecto podemos ver que el


enlace nos dirige a Facebook.

5|Page
UNICARIBE William hiciano 2015-2668

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;
using System.Diagnostics;

namespace Usando_Controles_Contenedores_Ricardo_Quiroz
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void checkedListBox4_SelectedIndexChanged(object sender,


EventArgs e)
{
checkedListBox4.Text = textBox4.Text;
textBox1.Enabled = false;
textBox2.Enabled = false;
textBox3.Enabled = false;
textBox4.Enabled = true;
textBox5.Enabled = false;
}

private void checkedListBox1_SelectedIndexChanged(object sender,


EventArgs e)
{
checkedListBox1.Text = textBox1.Text;
textBox1.Enabled = true;
textBox2.Enabled = false;
textBox3.Enabled = false;
textBox4.Enabled = false;
textBox5.Enabled = false;

private void textBox1_TextChanged(object sender, EventArgs e)


{
textBox1.Text = linkLabel1.Text;
}

private void checkedListBox2_SelectedIndexChanged(object sender,


EventArgs e)
{
checkedListBox2.Text = textBox2.Text;
textBox1.Enabled = false;
textBox2.Enabled = true;
textBox3.Enabled = false;
textBox4.Enabled = false;
textBox5.Enabled = false;

6|Page
UNICARIBE William hiciano 2015-2668

private void checkedListBox3_SelectedIndexChanged(object sender,


EventArgs e)
{
checkedListBox3.Text = textBox3.Text;
textBox1.Enabled = false;
textBox2.Enabled = false;
textBox3.Enabled = true;
textBox4.Enabled = false;
textBox5.Enabled = false;
}

private void checkedListBox5_SelectedIndexChanged(object sender,


EventArgs e)
{
checkedListBox5.Text = textBox5.Text;
textBox1.Enabled = false;
textBox2.Enabled = false;
textBox3.Enabled = false;
textBox4.Enabled = false;
textBox5.Enabled = true;
}

private void textBox2_TextChanged(object sender, EventArgs e)


{
textBox2.Text = linkLabel2.Text;
}

private void textBox3_TextChanged(object sender, EventArgs e)


{
textBox3.Text = linkLabel3.Text;
}

private void textBox4_TextChanged(object sender, EventArgs e)


{
textBox4.Text = linkLabel4.Text;
}

private void textBox5_TextChanged(object sender, EventArgs e)


{
textBox5.Text = linkLabel5.Text;
}

private void linkLabel1_LinkClicked(object sender,


LinkLabelLinkClickedEventArgs e)
{
textBox1.Text = linkLabel1.Text;
Process.Start("https://www.facebook.com/");
}

private void linkLabel2_LinkClicked(object sender,


LinkLabelLinkClickedEventArgs e)
{
textBox2.Text = linkLabel2.Text;
Process.Start("https://mail.google.com/mail/u/0/");
}

7|Page
UNICARIBE William hiciano 2015-2668

private void linkLabel3_LinkClicked(object sender,


LinkLabelLinkClickedEventArgs e)
{
textBox3.Text = linkLabel3.Text;
Process.Start("https://mescyt.gob.do/");
}

private void linkLabel4_LinkClicked(object sender,


LinkLabelLinkClickedEventArgs e)
{
textBox4.Text = linkLabel4.Text;
Process.Start("https://outlook.live.com/owa/");
}

private void linkLabel5_LinkClicked(object sender,


LinkLabelLinkClickedEventArgs e)
{
textBox5.Text = linkLabel5.Text;
Process.Start("https://unicaribe.edu.do/");
}

private void Form1_Load(object sender, EventArgs e)


{

}
}
}

8|Page
UNICARIBE William hiciano 2015-2668

sefwerf

9|Page

También podría gustarte