Bienvenidos

Espero que este Blog llene todas las expectativas que estan buscando

sábado, 18 de mayo de 2013

MOVER MENSAJE

Posted by Elvin German 9:45, under | No comments

LOAD

            try
            {
            this.Text = "SISTEMA DE ESTUDIANTES (O&M)" + Espacio(160);
            Tmr_Mensaje.Enabled = true;

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }






        private void Tmr_Mensaje_Tick(object sender, EventArgs e)
        {
            try
            {
                this.Text = this.Text.Substring(1) + this.Text.Substring(0, 1);
            }
            catch (Exception)
            {
               
                throw;
            }
        }

        public static string Espacio(int n)
        {
            string s = " ";
            for (int i = 0; i <= n; i++) s += " ";
            return s;
        }


0 comentarios:

Publicar un comentario