private void BConsultarAnexo_Click(object sender, EventArgs e) { ConsultarAnexo consultarAnexo = new ConsultarAnexo(); consultarAnexo.TopLevel = false; consultarAnexo.AutoScroll = true; pPanelBig.Controls.Add(consultarAnexo); consultarAnexo.Show(); }
private void BAnexo_Click(object sender, EventArgs e) { ConsultarAnexo consultarAnexo = new ConsultarAnexo(); consultarAnexo.Size = new Size(Screen.PrimaryScreen.Bounds.Width - 300, Screen.PrimaryScreen.Bounds.Height - (int)(Screen.PrimaryScreen.Bounds.Height * 0.11)); consultarAnexo.ShowDialog(); if (consultarAnexo.AAnexo != null) { tAnexo.Clear(); aAnexo = consultarAnexo.AAnexo; tAnexo.SelectedText = (aAnexo.SRazonSocial == null) ? aAnexo.SRepresentanteNombre : aAnexo.SRazonSocial; Fill_Anexo(); } }