Created
February 27, 2018 01:18
-
-
Save Fhernd/07f6a9fe222ce9f88a528b62762e146a to your computer and use it in GitHub Desktop.
Formulario en C#.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Windows.Forms; | |
namespace R705FormulariosMdiHijos | |
{ | |
public partial class FormularioHijo : Form | |
{ | |
public FormularioHijo() | |
{ | |
InitializeComponent(); | |
} | |
private void btnMostrarInformacionFormulariosHijos_Click(object sender, EventArgs e) | |
{ | |
foreach (Form formulario in this.MdiParent.MdiChildren) | |
{ | |
FormularioHijo formularioHijo = (FormularioHijo) formulario; | |
MessageBox.Show(formularioHijo.lblFechaHora.Text, formulario.Text); | |
} | |
} | |
private void FormularioHijo_Load(object sender, EventArgs e) | |
{ | |
lblFechaHora.Text = DateTime.Now.ToString(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment