private void btnHelp_Click(object sender, EventArgs e) { this.Hide(); Frmlogin f = new Frmlogin(); f.Show(); }
static void Main() { System.Windows.Forms.Application.EnableVisualStyles(); System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); Frmlogin Frmlogin = new Frmlogin(); Frmlogin.Show(); System.Windows.Forms.Application.Run( ); }
private void timer1_Tick(object sender, EventArgs e) { ProgressBar1__.Value = ProgressBar1__.Value + 2; if (ProgressBar1__.Value > 99) { Frmlogin fr = new Frmlogin(); fr.Show(); timer1.Enabled = false; this.Hide(); } }
private void MDIfrm_Load(object sender, EventArgs e) { foreach (Control control in Controls) { if (control is MdiClient) { control.BackgroundImage = Properties.Resources.fundo; control.BackgroundImageLayout = ImageLayout.Zoom; break; } } mnsprincipal.Visible = false; var Frmlogin = new Frmlogin(); Frmlogin.ShowDialog(); if (!Frmlogin.bFlagLogin) { Application.Exit(); } mnsprincipal.Visible = true; }