Beispiel #1
0
        public void modificarDatos()
        {
            Ejer5_Form1 f1 = (Ejer5_Form1)Owner;

            try
            {
                tbInicio.Text   = f1.textBox1.SelectionStart + "";
                tbLongitud.Text = f1.textBox1.SelectionLength + "";
            }
            catch { }
        }
Beispiel #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;
            }
        }
Beispiel #3
0
        private void Informacion_FormClosing(object sender, FormClosingEventArgs e)
        {
            Ejer5_Form1 f1 = (Ejer5_Form1)Owner;

            f1.btnSecundario.Enabled = true;
        }