Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created February 27, 2018 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/07f6a9fe222ce9f88a528b62762e146a to your computer and use it in GitHub Desktop.
Save Fhernd/07f6a9fe222ce9f88a528b62762e146a to your computer and use it in GitHub Desktop.
Formulario en C#.
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