Esempio n. 1
0
        public void modificarDatos()
        {
            Ejer5_Form1 f1 = (Ejer5_Form1)Owner;

            try
            {
                tbInicio.Text   = f1.textBox1.SelectionStart + "";
                tbLongitud.Text = f1.textBox1.SelectionLength + "";
            }
            catch { }
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Ejer5_Form1 f1 = (Ejer5_Form1)Owner;

            try
            {
                lblError.Visible            = false;
                f1.textBox1.SelectionStart  = Convert.ToInt32(tbInicio.Text);
                f1.textBox1.SelectionLength = Convert.ToInt32(tbLongitud.Text);
                f1.textBox1.Focus();
            }
            catch
            {
                lblError.Visible = true;
            }
        }
Esempio n. 3
0
        private void Informacion_FormClosing(object sender, FormClosingEventArgs e)
        {
            Ejer5_Form1 f1 = (Ejer5_Form1)Owner;

            f1.btnSecundario.Enabled = true;
        }